aboutsummaryrefslogtreecommitdiff
path: root/src/statistics/test_gnunet_statistics.py.in
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-10-12 18:16:07 +0000
committerng0 <ng0@n0.is>2019-10-12 18:16:07 +0000
commita5f5e7ed9b07b902af4438d76087e034abcba9b2 (patch)
tree6f376f93f1c785103d0b30f54311a0f61d2bdced /src/statistics/test_gnunet_statistics.py.in
parent8e827de2a1db34dfe15f5f9da2850ca469b5ecc3 (diff)
downloadgnunet-a5f5e7ed9b07b902af4438d76087e034abcba9b2.tar.gz
gnunet-a5f5e7ed9b07b902af4438d76087e034abcba9b2.zip
format python
Diffstat (limited to 'src/statistics/test_gnunet_statistics.py.in')
-rw-r--r--src/statistics/test_gnunet_statistics.py.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/statistics/test_gnunet_statistics.py.in b/src/statistics/test_gnunet_statistics.py.in
index b14dc9d9e..3a13c24f3 100644
--- a/src/statistics/test_gnunet_statistics.py.in
+++ b/src/statistics/test_gnunet_statistics.py.in
@@ -122,7 +122,9 @@ if len([x for x in stdo.splitlines() if re.search(b'42', x)]) != 1:
122print("PASS") 122print("PASS")
123 123
124print("TEST: Set persistent value...", end='') 124print("TEST: Set persistent value...", end='')
125rc, stdo, stde = r_st(['-n', 'lasting', '-s', 'subsystem', '40', '-p'], nofail=True, want_stdo=False) 125rc, stdo, stde = r_st(['-n', 'lasting', '-s', 'subsystem', '40', '-p'],
126 nofail=True,
127 want_stdo=False)
126rc, stdo, stde = r_st([], nofail=True, want_stdo=True) 128rc, stdo, stde = r_st([], nofail=True, want_stdo=True)
127if len([x for x in stdo.splitlines() if re.search(b'40', x)]) != 1: 129if len([x for x in stdo.splitlines() if re.search(b'40', x)]) != 1:
128 fail("FAIL: unexpected output:\n{}".format(stdo)) 130 fail("FAIL: unexpected output:\n{}".format(stdo))
@@ -137,7 +139,9 @@ if len([x for x in stdo.splitlines() if re.search(b'40', x)]) != 1:
137print("PASS") 139print("PASS")
138 140
139print("TEST: Removing persistence...", end='') 141print("TEST: Removing persistence...", end='')
140rc, stdo, stde = r_st(['-n', 'lasting', '-s', 'subsystem', '40'], nofail=True, want_stdo=False) 142rc, stdo, stde = r_st(['-n', 'lasting', '-s', 'subsystem', '40'],
143 nofail=True,
144 want_stdo=False)
141rc, stdo, stde = r_st([], nofail=True, want_stdo=True) 145rc, stdo, stde = r_st([], nofail=True, want_stdo=True)
142if len([x for x in stdo.splitlines() if re.search(b'!', x)]) != 0: 146if len([x for x in stdo.splitlines() if re.search(b'!', x)]) != 0:
143 fail("FAIL: unexpected output:\n{}".format(stdo)) 147 fail("FAIL: unexpected output:\n{}".format(stdo))