Add task-bench, which has Haiku fix planted bugs at a base and a head and prints what each side took
CI / tests (pull_request) Failing after 4m9s
CI / tests (pull_request) Failing after 4m9s
This commit is contained in:
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env python3
|
||||
import os
|
||||
import pathlib
|
||||
import signal
|
||||
import sys
|
||||
|
||||
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parent))
|
||||
|
||||
from task_bench import main
|
||||
|
||||
# Python ends on SIGTERM or SIGHUP without running a finally, which would leave the bench's containers, network and image. As
|
||||
# SystemExit, the run unwinds as on Ctrl-C.
|
||||
for number in (signal.SIGHUP, signal.SIGTERM):
|
||||
signal.signal(number, lambda number, frame: sys.exit(128 + number))
|
||||
sys.exit(main.main(sys.argv[1:], os.environ))
|
||||
Reference in New Issue
Block a user