Rerun main() only after running finally block
This commit is contained in:
parent
5ecf50b4d8
commit
e6b3bff50a
|
@ -223,7 +223,8 @@ def main(attempts=3):
|
||||||
expected_result = expected_result_new
|
expected_result = expected_result_new
|
||||||
if not test_expected_result(p, expected_result, cols, rows, not attempts):
|
if not test_expected_result(p, expected_result, cols, rows, not attempts):
|
||||||
if attempts:
|
if attempts:
|
||||||
return main(attempts=(attempts - 1))
|
pass
|
||||||
|
# Will rerun main later.
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
|
@ -233,6 +234,7 @@ def main(attempts=3):
|
||||||
'PATH': vterm_path,
|
'PATH': vterm_path,
|
||||||
'LD_LIBRARY_PATH': os.environ.get('LD_LIBRARY_PATH', ''),
|
'LD_LIBRARY_PATH': os.environ.get('LD_LIBRARY_PATH', ''),
|
||||||
})
|
})
|
||||||
|
return main(attempts=(attempts - 1))
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in New Issue