save result when KeyboardInterrupt
Browse files- 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
|