message: Add --no-exit flag to run_tests_one_by_one script
diff: @@ -3,9 +3,16 @@ import subprocess
  import re
  if len(sys.argv) < 2:
  - print("Expected usage: python3 scripts/run_tests_one_by_one.py build/debug/test/unittest")
  + print("Expected usage: python3 scripts/run_tests_one_by_one.py build/debug/test/unittest [--no-exit]")
  exit(1)
  +# wheth
  +no_exit = False
  +for i in range(len(sys.argv)):
  + if sys.argv[i] == '--no-exit':
  + no_exit = True
  + del sys.argv[i]
  +
  unittest_program = sys.argv[1]
  extra_args = []
  if len(sys.argv) > 2:
  @@ -34,6 +41,7 @@ for line in stdout.splitlines():
  test_cases.append(splits[0])
  test_count = len(test_cases)
  +return_code = 0
  for test_number in range(test_count):
  print("[" + str(test_number) + "/" + str(test_count) + "]: " + test_cases[test_number])
  res = subprocess.run([unittest_program, test_cases[test_number]], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  @@ -56,5 +64,9 @@ STDERR
  --------------------
  """)
  print(stderr)
  - exit(1)
  + return_code = 1
  + if not no_exit:
  + break
  +
  +exit(return_code)
  