From 3e3426f2cc0e44f4048d058b227fab2c9db3e5b9 Mon Sep 17 00:00:00 2001 From: panghao1 Date: Tue, 30 Jun 2015 04:10:11 +0000 Subject: Fix yardstick.out overwritten bug The output of scenarios will be appended to the yardstick.out file. JIRA: YARDSTICK-45 Change-Id: I185c6d2a8a534c8bb2b731bb84c47bdf4bad4427 Signed-off-by: panghao1 --- yardstick/benchmark/runners/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'yardstick/benchmark') diff --git a/yardstick/benchmark/runners/base.py b/yardstick/benchmark/runners/base.py index badc33565..30fa07639 100644 --- a/yardstick/benchmark/runners/base.py +++ b/yardstick/benchmark/runners/base.py @@ -25,7 +25,7 @@ def _output_serializer_main(filename, queue): Use of this process enables multiple instances of a scenario without messing up the output file. ''' - with open(filename, 'w') as outfile: + with open(filename, 'a+') as outfile: while True: # blocks until data becomes available record = queue.get() -- cgit 1.2.3-korg