Skip to content

Commit fab0ff7

Browse files
committed
test_translator.py: pass --fail-on-error
this makes tests fail at the translation step rather than when C compilation fails due to the failed translation step
1 parent 2912dc2 commit fab0ff7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/test_translator.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ def translate(self, cc_db: str, ld_lib_path: str, extra_args: List[str] = []) ->
8686
"--overwrite-existing",
8787
]
8888

89+
# return nonzero if translation fails
90+
args.append("--fail-on-error")
91+
8992
if self.disable_incremental_relooper:
9093
args.append("--no-incremental-relooper")
9194
if self.disallow_current_block:

0 commit comments

Comments
 (0)