Skip to content

Commit

Permalink
update python script
Browse files Browse the repository at this point in the history
  • Loading branch information
anhnguyen1618 committed Feb 3, 2019
1 parent c67b11a commit acafe31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ def run_all_test():

build_compiler()
test_fails = []
number_of_tests = 0

for test_file in test_files:
number_of_tests = number_of_tests + 1
exit_code = run_single_test_without_compile(test_file)
if exit_code != SUCCESS_CODE:
print_error(test_file)
Expand All @@ -70,7 +72,7 @@ def run_all_test():
for test_fail in test_fails:
print_error(test_fail)
else:
print "================== ALL TESTS PASSED =================="
print "================== ALL TESTS PASSED ("+ str(number_of_tests) +" cases) =================="


parser = argparse.ArgumentParser()
Expand Down

0 comments on commit acafe31

Please sign in to comment.