Skip to content

Commit 2afb00c

Browse files
committed
assert exit status of pjdfstest scripts
1 parent 83e593d commit 2afb00c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/lib/prove.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def prove(self, test_path):
8181
grp_log = read_file(self.loggedfs_log_abs_path)
8282

8383
pass_condition = all([
84+
status, # ASSERT BELOW!
8485
len_failed == 0, # ASSERT BELOW!
8586
len_expected == (len_passed + len_passed_todo + len_failed + len_failed_todo), # ASSERT BELOW!
8687
len_expected != 0, # ASSERT BELOW!
@@ -126,6 +127,7 @@ def prove(self, test_path):
126127

127128
self.__clear_loggedfs_log__()
128129

130+
assert status # ASSERT ABOVE!
129131
assert len_failed == 0 # ASSERT ABOVE!
130132
assert len_expected == (len_passed + len_passed_todo + len_failed + len_failed_todo) # ASSERT ABOVE!
131133
assert len_expected != 0 # ASSERT ABOVE!

0 commit comments

Comments
 (0)