yujuanqin commited on
Commit
d907122
·
1 Parent(s): dbcf7a0

save result when KeyboardInterrupt

Browse files
Files changed (1) hide show
  1. test_mlx.py +2 -0
test_mlx.py CHANGED
@@ -104,6 +104,8 @@ def test_base_model(result: list):
104
  try:
105
  ret = cmd(command, capture_output=True)
106
  result.append(parse_log(ret.stdout))
 
 
107
  except Exception as e:
108
  print("Exception: ", e)
109
  return result
 
104
  try:
105
  ret = cmd(command, capture_output=True)
106
  result.append(parse_log(ret.stdout))
107
+ except KeyboardInterrupt:
108
+ return result
109
  except Exception as e:
110
  print("Exception: ", e)
111
  return result