summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test-cli/test/tests/qethernet.py2
-rw-r--r--test-cli/test/tests/qwifi.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/test-cli/test/tests/qethernet.py b/test-cli/test/tests/qethernet.py
index da085d8..d7354bf 100644
--- a/test-cli/test/tests/qethernet.py
+++ b/test-cli/test/tests/qethernet.py
@@ -52,7 +52,7 @@ class Qethernet(unittest.TestCase):
self.__bwreal = float(data['end']['sum_received']['bits_per_second'])/1024/1024
# save result file
with open('/tmp/ethernet-iperf.json', 'w') as outfile:
- json.dump(data, outfile)
+ json.dump(data, outfile, indent=4)
# check if BW is in the expected range
self.failUnless(self.__bwreal > float(self.__bwexpected) * 0.9,
diff --git a/test-cli/test/tests/qwifi.py b/test-cli/test/tests/qwifi.py
index 0944dd7..a5b66e9 100644
--- a/test-cli/test/tests/qwifi.py
+++ b/test-cli/test/tests/qwifi.py
@@ -62,7 +62,7 @@ class Qwifi(unittest.TestCase):
self.__bwreal = float(data['end']['sum_received']['bits_per_second']) / 1024 / 1024
# save result file
with open('/tmp/wifi-iperf.json', 'w') as outfile:
- json.dump(data, outfile)
+ json.dump(data, outfile, indent=4)
# check if BW is in the expected range
self.failUnless(self.__bwreal > float(self.__bwexpected) * 0.9,