diff options
author | ng0 <ng0@n0.is> | 2019-10-12 18:16:07 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-10-12 18:16:07 +0000 |
commit | a5f5e7ed9b07b902af4438d76087e034abcba9b2 (patch) | |
tree | 6f376f93f1c785103d0b30f54311a0f61d2bdced /src/statistics/test_gnunet_statistics.py.in | |
parent | 8e827de2a1db34dfe15f5f9da2850ca469b5ecc3 (diff) | |
download | gnunet-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.in | 8 |
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: | |||
122 | print("PASS") | 122 | print("PASS") |
123 | 123 | ||
124 | print("TEST: Set persistent value...", end='') | 124 | print("TEST: Set persistent value...", end='') |
125 | rc, stdo, stde = r_st(['-n', 'lasting', '-s', 'subsystem', '40', '-p'], nofail=True, want_stdo=False) | 125 | rc, stdo, stde = r_st(['-n', 'lasting', '-s', 'subsystem', '40', '-p'], |
126 | nofail=True, | ||
127 | want_stdo=False) | ||
126 | rc, stdo, stde = r_st([], nofail=True, want_stdo=True) | 128 | rc, stdo, stde = r_st([], nofail=True, want_stdo=True) |
127 | if len([x for x in stdo.splitlines() if re.search(b'40', x)]) != 1: | 129 | if 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: | |||
137 | print("PASS") | 139 | print("PASS") |
138 | 140 | ||
139 | print("TEST: Removing persistence...", end='') | 141 | print("TEST: Removing persistence...", end='') |
140 | rc, stdo, stde = r_st(['-n', 'lasting', '-s', 'subsystem', '40'], nofail=True, want_stdo=False) | 142 | rc, stdo, stde = r_st(['-n', 'lasting', '-s', 'subsystem', '40'], |
143 | nofail=True, | ||
144 | want_stdo=False) | ||
141 | rc, stdo, stde = r_st([], nofail=True, want_stdo=True) | 145 | rc, stdo, stde = r_st([], nofail=True, want_stdo=True) |
142 | if len([x for x in stdo.splitlines() if re.search(b'!', x)]) != 0: | 146 | if 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)) |