summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHector Fernandez <hector@iatec.biz>2020-06-17 10:50:02 +0200
committerHector Fernandez <hector@iatec.biz>2020-06-17 10:50:02 +0200
commit736ddcfe6dc3b5edbab6773f1c6687f6597fa7a3 (patch)
treecee12c8f7da45813f9e439b551bae139ce42ff62
parent7f13bbf84bec700c82e0cc2fea78a4026962f340 (diff)
downloadboard-736ddcfe6dc3b5edbab6773f1c6687f6597fa7a3.zip
board-736ddcfe6dc3b5edbab6773f1c6687f6597fa7a3.tar.gz
board-736ddcfe6dc3b5edbab6773f1c6687f6597fa7a3.tar.bz2
SOPA0000: Beatified JSON files generated by tests which use iperf3.
-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,