diff --git a/README.md b/README.md index b80713d9c0a237d7fe2b81566880d30ebb5bd4fc..705c6319e634d14b77a506284d66ede8756f9030 100644 --- a/README.md +++ b/README.md @@ -126,3 +126,15 @@ python3 experiment.py E001 --archived-solver g61_R1 --run-dir trial-E001 --venv For an authorized installation, add --authorized-root /path/to/DrugResearchBench. The helper binds the complete frozen server verifier by content hashes and makes its private files visible only to the verifier. With --solver you can use your own independent source. The same unpack command also expands trajectories/history/. C0 retains original solver events and historical assessments, Opus stores the two review slots and their inclusion status, and BE04 contains available budget-arm artifacts. These records are separate from the 402 formal model repeats. See [history_index.json](history_index.json) and [registry-only entries](registered_only). + +## Verified quick start + +The paper-level test requires Python 3.10+ and replays all six submitted scores. It automatically expands the formal traces, so only the selected paper and the root runner are needed. For the full end-to-end scientific check, E001 bundles both its original and changed inputs. Its three independently sandboxed science executions and 64-criterion historical-judgment regression are documented in [the validation receipt](validation/portable_e001.json). This regression used an already adjudicated decision as a fixture. + +On a Linux host with the E001 scientific environment available, the portable command is: + +~~~sh +python3 experiment.py E001 --archived-solver g61_R1 --run-dir new-e001 --venv /path/to/scientific-venv +~~~ + +This command reports the evidence ceiling. To score a new solution, run the independent judge against the new evidence. The canonical archived grades remain visible with the paper-level shell test. [Paper index and all 402 scores](TASKS.md) diff --git a/drb.py b/drb.py index 2bd0cea06f584356fe945742126f656c547458af..c0615753765534eedb26d13335f9895253426c9f 100644 --- a/drb.py +++ b/drb.py @@ -36,6 +36,33 @@ def sha(path): return result.hexdigest() +def allow_sandbox_read(path, existing=False): + """Let the unprivileged runner read a staged file when an administrator unpacked it.""" + if os.name != "posix" or os.geteuid() != 0: + return + uid = int(os.environ.get("SUDO_UID", 65534)) + gid = int(os.environ.get("SUDO_GID", 65534)) + info = path.stat() + readable = (info.st_mode & 0o004 or + info.st_uid == uid and info.st_mode & 0o400 or + info.st_gid == gid and info.st_mode & 0o040) + if readable or gid <= 0: + return + if existing: + # Replacing the workspace copy leaves an original hard-linked archive untouched. + with tempfile.NamedTemporaryFile(dir=path.parent, delete=False) as h: + temporary = Path(h.name) + try: + shutil.copyfile(path, temporary) + allow_sandbox_read(temporary) + os.replace(temporary, path) + finally: + temporary.unlink(missing_ok=True) + return + os.chown(path, -1, gid) + path.chmod((info.st_mode & 0o777) | 0o040) + + def relative(value): path = PurePosixPath(value) require(path.parts and not path.is_absolute() and ".." not in path.parts and "\\" not in value, "Unsafe path") @@ -93,7 +120,9 @@ def unpack(folder, section=None): if dest.exists(): require(sha(tmp) == sha(dest), "Existing unpacked file differs: " + item.name) tmp.unlink() + allow_sandbox_read(dest, existing=True) else: + allow_sandbox_read(tmp) os.replace(tmp, dest) for prefix in ("inputs","oracle","trajectories","implementation"): if section and prefix!=("trajectories" if section=="formal" else section):continue @@ -106,8 +135,10 @@ def unpack(folder, section=None): dst.parent.mkdir(parents=True,exist_ok=True) if dst.exists(): require(sha(dst)==item["sha256"],"Existing expanded file differs") + allow_sandbox_read(dst, existing=True) else: shutil.copyfile(src,dst) + allow_sandbox_read(dst) return {"task": folder.name, "unpacked": True} @@ -120,6 +151,7 @@ def verify_inputs(folder, source=None, fetch=False, mode="original"): def good(p): return p.is_file() and p.stat().st_size == item["bytes"] and sha(p) == item["sha256"] if good(dst): + allow_sandbox_read(dst, existing=True) continue local = within(source, item["path"]) if source else None if mode=="hidden" and item.get("distribution")=="reuse_original": @@ -140,6 +172,7 @@ def verify_inputs(folder, source=None, fetch=False, mode="original"): with urllib.request.urlopen(direct, timeout=90) as stream, tmp.open("wb") as out: shutil.copyfileobj(stream, out) require(good(tmp), "Upstream byte identity differs: " + item["path"]) + allow_sandbox_read(tmp) os.replace(tmp, dst) finally: tmp.unlink(missing_ok=True) diff --git a/provision.py b/provision.py index 0585c2b83cd009d67bb608fcc83a3ef155bc3c29..0c18cf0c44d07a52a2a39cbed481be271c09688c 100644 --- a/provision.py +++ b/provision.py @@ -8,7 +8,7 @@ import os from pathlib import Path import shutil import tempfile -from drb import load, require, sha, task, within +from drb import allow_sandbox_read, load, require, sha, task, within def provision(d, data_root, mode): spec=load(d/"inputs/provisioning.json")[mode] @@ -17,7 +17,9 @@ def provision(d, data_root, mode): unresolved=[] for r in spec: out=within(target,r["path"]) - if out.is_file() and out.stat().st_size==r["bytes"] and sha(out)==r["sha256"]:continue + if out.is_file() and out.stat().st_size==r["bytes"] and sha(out)==r["sha256"]: + allow_sandbox_read(out, existing=True) + continue source=None for loc in r.get("source_paths",[]): try: @@ -36,6 +38,7 @@ def provision(d, data_root, mode): tmp.unlink(missing_ok=True);raise try: require(sha(tmp)==r["sha256"],"Provisioned bytes differ") + allow_sandbox_read(tmp) os.replace(tmp,out) finally:tmp.unlink(missing_ok=True) return len(spec),unresolved diff --git a/tasks/E001/tests/test.sh b/tasks/E001/tests/test.sh index bd51dd3dae8510300a289705f32d4bd2aa0045a1..e06b1bde2bcc57e56fc45296dbd43e00c1d69f60 100644 --- a/tasks/E001/tests/test.sh +++ b/tasks/E001/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack E001 -python3 "$here/drb.py" replay E001 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay E001 diff --git a/tasks/E002/tests/test.sh b/tasks/E002/tests/test.sh index 82e210fc5670585e6bb686e2ddcae261967339f5..70c76a6d1be85f0671c39a04bdac24f88e85a7b7 100644 --- a/tasks/E002/tests/test.sh +++ b/tasks/E002/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack E002 -python3 "$here/drb.py" replay E002 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay E002 diff --git a/tasks/E003/tests/test.sh b/tasks/E003/tests/test.sh index c45fe7b5268972cf56b2233dacf5ca19c053f30e..d4edbe07b7297783d84e31f2ea8721b8629abc25 100644 --- a/tasks/E003/tests/test.sh +++ b/tasks/E003/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack E003 -python3 "$here/drb.py" replay E003 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay E003 diff --git a/tasks/E004/tests/test.sh b/tasks/E004/tests/test.sh index a07f8782ba610e30f208171757b99ea37effbe83..b6fdbbd084ec76d564f3727a9b72f0f3a62ea11a 100644 --- a/tasks/E004/tests/test.sh +++ b/tasks/E004/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack E004 -python3 "$here/drb.py" replay E004 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay E004 diff --git a/tasks/E005/tests/test.sh b/tasks/E005/tests/test.sh index c8ce82727108ccf7d197eb416b00e48456922920..424bd5d4d131b994c1ceeec67c1a77c242c12298 100644 --- a/tasks/E005/tests/test.sh +++ b/tasks/E005/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack E005 -python3 "$here/drb.py" replay E005 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay E005 diff --git a/tasks/E006/tests/test.sh b/tasks/E006/tests/test.sh index 9bd531fd7c20b6ae509bdb6fcbb34c437060e2ac..eb0d48d3b07fbe3c89bb68759d0d4dbb3a363d57 100644 --- a/tasks/E006/tests/test.sh +++ b/tasks/E006/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack E006 -python3 "$here/drb.py" replay E006 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay E006 diff --git a/tasks/E007/tests/test.sh b/tasks/E007/tests/test.sh index 07d7dc76e4503d2cb9b14c6fb4c44106695be6e0..81f5aae8fca32280aed57744f97567ee2318f547 100644 --- a/tasks/E007/tests/test.sh +++ b/tasks/E007/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack E007 -python3 "$here/drb.py" replay E007 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay E007 diff --git a/tasks/E008/tests/test.sh b/tasks/E008/tests/test.sh index fd13ac99171f045ec56b3173ac15c31c0ac4f1c8..75650eba50d5ff3f6bc88160f8ae8463e5bb7bde 100644 --- a/tasks/E008/tests/test.sh +++ b/tasks/E008/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack E008 -python3 "$here/drb.py" replay E008 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay E008 diff --git a/tasks/E009/tests/test.sh b/tasks/E009/tests/test.sh index 91765a56e38f60d00de22149a32e9f6703b27c5a..a7821d16883692155128277d435c418e766e0d76 100644 --- a/tasks/E009/tests/test.sh +++ b/tasks/E009/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack E009 -python3 "$here/drb.py" replay E009 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay E009 diff --git a/tasks/E010/tests/test.sh b/tasks/E010/tests/test.sh index 00e9cc9ba3279e3593b47aba9439d39c20e0d820..e1b1ef63d6b8119c8bd3279db102f6fdc85ab704 100644 --- a/tasks/E010/tests/test.sh +++ b/tasks/E010/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack E010 -python3 "$here/drb.py" replay E010 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay E010 diff --git a/tasks/E011/tests/test.sh b/tasks/E011/tests/test.sh index 544e1c92fcdd403856247a0a156cb08700753872..61c7a3574d931b23694a878e2db6b7bf33b265a0 100644 --- a/tasks/E011/tests/test.sh +++ b/tasks/E011/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack E011 -python3 "$here/drb.py" replay E011 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay E011 diff --git a/tasks/E012/tests/test.sh b/tasks/E012/tests/test.sh index ac1acf4e473ca18dd288c79e355041a416aa8c1e..41ff71ed3f549c02541860572863985a7f4f4120 100644 --- a/tasks/E012/tests/test.sh +++ b/tasks/E012/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack E012 -python3 "$here/drb.py" replay E012 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay E012 diff --git a/tasks/E013/tests/test.sh b/tasks/E013/tests/test.sh index b12db3288483774c27749040390160bf5e2a84aa..d1cf095f205e03f355a54f20289109bb553be39e 100644 --- a/tasks/E013/tests/test.sh +++ b/tasks/E013/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack E013 -python3 "$here/drb.py" replay E013 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay E013 diff --git a/tasks/E014/tests/test.sh b/tasks/E014/tests/test.sh index 00c6b3225f54ed4d29c93ab709febf9ff6911a19..fbec8d44351f3be96196ee32b3e7a35a1eda8e8b 100644 --- a/tasks/E014/tests/test.sh +++ b/tasks/E014/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack E014 -python3 "$here/drb.py" replay E014 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay E014 diff --git a/tasks/E015/tests/test.sh b/tasks/E015/tests/test.sh index b4a20ec1840c9696deabe4dc12999dcde74c8c00..91b8c38d064b8ceddc3ee5ac3261e1b25cfd2870 100644 --- a/tasks/E015/tests/test.sh +++ b/tasks/E015/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack E015 -python3 "$here/drb.py" replay E015 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay E015 diff --git a/tasks/E016/tests/test.sh b/tasks/E016/tests/test.sh index 65b534b7271b3cd6455c2f19e91eaadd99162cda..11528bf27fac6e3fddb3f6a5d18be1a828336565 100644 --- a/tasks/E016/tests/test.sh +++ b/tasks/E016/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack E016 -python3 "$here/drb.py" replay E016 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay E016 diff --git a/tasks/E017/tests/test.sh b/tasks/E017/tests/test.sh index 7b94e718738401b1761faf1a2c3deec370e1b0cb..7be6c69c5c0520ec266e663f6f956eeec0cc8949 100644 --- a/tasks/E017/tests/test.sh +++ b/tasks/E017/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack E017 -python3 "$here/drb.py" replay E017 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay E017 diff --git a/tasks/E018/tests/test.sh b/tasks/E018/tests/test.sh index 1088995b6005c8e37af0de631a15d39217ce9bb8..3a73cb6b13354a75a976a581708ee844c9f68525 100644 --- a/tasks/E018/tests/test.sh +++ b/tasks/E018/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack E018 -python3 "$here/drb.py" replay E018 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay E018 diff --git a/tasks/E019/tests/test.sh b/tasks/E019/tests/test.sh index e92fb6565b6afbae42f4c706078cbb636e44a515..f293a6fbae4faac853270f59cc5d5a899fe02f46 100644 --- a/tasks/E019/tests/test.sh +++ b/tasks/E019/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack E019 -python3 "$here/drb.py" replay E019 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay E019 diff --git a/tasks/E020/tests/test.sh b/tasks/E020/tests/test.sh index de234d6150f37e19cc3634e31bcc53ee5421ab04..4ab190704f7e6b8949546e2ba3cec9866ad09bc9 100644 --- a/tasks/E020/tests/test.sh +++ b/tasks/E020/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack E020 -python3 "$here/drb.py" replay E020 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay E020 diff --git a/tasks/P048/tests/test.sh b/tasks/P048/tests/test.sh index 606125d9a95aa2a0e2fe252e719cf11c7b11cf8d..6f15a50e3bac68dcae7967ccea962a2d7db23dd6 100644 --- a/tasks/P048/tests/test.sh +++ b/tasks/P048/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack P048 -python3 "$here/drb.py" replay P048 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay P048 diff --git a/tasks/P059/tests/test.sh b/tasks/P059/tests/test.sh index fb1c099007903f191e41a027d62a0fc6901e7957..7fa08da2ab8ec315950b420a599542965cd08ddf 100644 --- a/tasks/P059/tests/test.sh +++ b/tasks/P059/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack P059 -python3 "$here/drb.py" replay P059 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay P059 diff --git a/tasks/P077/tests/test.sh b/tasks/P077/tests/test.sh index 41674be131a439357be2e853f8e3836c90edfdbf..db894e05dfad56b8a5f79a11d6f003078ad72a4a 100644 --- a/tasks/P077/tests/test.sh +++ b/tasks/P077/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack P077 -python3 "$here/drb.py" replay P077 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay P077 diff --git a/tasks/P102/inputs/files-02.tar.gz.part-023 b/tasks/P102/inputs/files-02.tar.gz.part-023 new file mode 100644 index 0000000000000000000000000000000000000000..f81e9ffbfbe3fa2165a0f0ca5d6d272f7861c8a9 --- /dev/null +++ b/tasks/P102/inputs/files-02.tar.gz.part-023 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a636be31f01ec71618088da68904b155ceee6e85046c5d5290c0000a1ba13537 +size 33554432 diff --git a/tasks/P102/inputs/files-02.tar.gz.part-024 b/tasks/P102/inputs/files-02.tar.gz.part-024 new file mode 100644 index 0000000000000000000000000000000000000000..f4e3fbde36a94292ebf91a91f2b27c87a03fa202 --- /dev/null +++ b/tasks/P102/inputs/files-02.tar.gz.part-024 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4ff03f4fa3ad679943951b5d3956ec77d80293b9ebb5e40ac4bb416ef301795b +size 33554432 diff --git a/tasks/P102/inputs/files-02.tar.gz.part-025 b/tasks/P102/inputs/files-02.tar.gz.part-025 new file mode 100644 index 0000000000000000000000000000000000000000..dc06dd8da4bb34731a32051a4826e3baf49fb730 --- /dev/null +++ b/tasks/P102/inputs/files-02.tar.gz.part-025 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1ea1ba9ed9993f8b6e93d334642d960741934444c99be489174b4765d2e9756c +size 33554432 diff --git a/tasks/P102/inputs/files-02.tar.gz.part-026 b/tasks/P102/inputs/files-02.tar.gz.part-026 new file mode 100644 index 0000000000000000000000000000000000000000..33a4c0be6431772dce59112986539b9589f0cc6f --- /dev/null +++ b/tasks/P102/inputs/files-02.tar.gz.part-026 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8955a2493c50eedcfea6ce4ad0d03f8bffdadc594128d08d75eb026fe0ce51cd +size 33554432 diff --git a/tasks/P102/inputs/files-02.tar.gz.part-027 b/tasks/P102/inputs/files-02.tar.gz.part-027 new file mode 100644 index 0000000000000000000000000000000000000000..68d0941551bf16e52bc6fcaf786098f7cd62a884 --- /dev/null +++ b/tasks/P102/inputs/files-02.tar.gz.part-027 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d18c53103d9f998017ab848dcef11a730852c602fe3c22266f75064341c9c99a +size 33554432 diff --git a/tasks/P102/tests/test.sh b/tasks/P102/tests/test.sh index 421e80d6c0c1ec73b247c6a85f622013bb9789fc..60a4f6ed4c65004ed80c6aeb486ae4f8152433cc 100644 --- a/tasks/P102/tests/test.sh +++ b/tasks/P102/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack P102 -python3 "$here/drb.py" replay P102 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay P102 diff --git a/tasks/P112/tests/test.sh b/tasks/P112/tests/test.sh index 6ec76eca58dba434a2f94d33c1102f67bde240f4..163cc180cbd27afc49f7141b2f9bc35fe6d97a04 100644 --- a/tasks/P112/tests/test.sh +++ b/tasks/P112/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack P112 -python3 "$here/drb.py" replay P112 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay P112 diff --git a/tasks/P128/tests/test.sh b/tasks/P128/tests/test.sh index 86ac17777e11083be48ddbc0a540971900956ab9..843a77997a11c97f97ff3a0a32b97199f8ba012e 100644 --- a/tasks/P128/tests/test.sh +++ b/tasks/P128/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack P128 -python3 "$here/drb.py" replay P128 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay P128 diff --git a/tasks/P138/tests/test.sh b/tasks/P138/tests/test.sh index fd2c13a3ce62b0cf9dadcd0ba2cf75b71ed5d552..36481a1a2c068df8aefc646d85770d782fca5738 100644 --- a/tasks/P138/tests/test.sh +++ b/tasks/P138/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack P138 -python3 "$here/drb.py" replay P138 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay P138 diff --git a/tasks/P146/tests/test.sh b/tasks/P146/tests/test.sh index 9ede966b20b12c53729a21cd785d2a46254fe51d..b32a3c12353fd1b96f9ea1ea13dba340320f65f3 100644 --- a/tasks/P146/tests/test.sh +++ b/tasks/P146/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack P146 -python3 "$here/drb.py" replay P146 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay P146 diff --git a/tasks/P155/tests/test.sh b/tasks/P155/tests/test.sh index b386ace4e7181e1708309197f682b1057fdd7647..c45a157601a0ab6b15af1d1a02975ff84b1cf8f4 100644 --- a/tasks/P155/tests/test.sh +++ b/tasks/P155/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack P155 -python3 "$here/drb.py" replay P155 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay P155 diff --git a/tasks/P162/tests/test.sh b/tasks/P162/tests/test.sh index 0deca2343a27138663bd4d64585aa99f3875b430..409af495f5df52ea1e33657481c7f1669c2337d5 100644 --- a/tasks/P162/tests/test.sh +++ b/tasks/P162/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack P162 -python3 "$here/drb.py" replay P162 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay P162 diff --git a/tasks/P170/tests/test.sh b/tasks/P170/tests/test.sh index 42308e86d8ed52633bcac965003b44a35775d680..5405bbb4f8e88a943886fc9f420c44e30d81d405 100644 --- a/tasks/P170/tests/test.sh +++ b/tasks/P170/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack P170 -python3 "$here/drb.py" replay P170 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay P170 diff --git a/tasks/P173/tests/test.sh b/tasks/P173/tests/test.sh index a0283459028ef3ced67b37ab8fc25df4325ba17a..152f598f25944a3fa66de9e3b3c8190a31bc8a2a 100644 --- a/tasks/P173/tests/test.sh +++ b/tasks/P173/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack P173 -python3 "$here/drb.py" replay P173 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay P173 diff --git a/tasks/P182/tests/test.sh b/tasks/P182/tests/test.sh index 090aa04d4bf16b9122dd43a147a1d352cc53f2fc..aab8628accb9a5efc7217a47b71136ea041f1c57 100644 --- a/tasks/P182/tests/test.sh +++ b/tasks/P182/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack P182 -python3 "$here/drb.py" replay P182 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay P182 diff --git a/tasks/P189/tests/test.sh b/tasks/P189/tests/test.sh index ad4f4a12f458acf7a8d0e381e4186c9663820e92..d021b1759fb61edde9151827ccf10960bb9394fe 100644 --- a/tasks/P189/tests/test.sh +++ b/tasks/P189/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack P189 -python3 "$here/drb.py" replay P189 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay P189 diff --git a/tasks/P199/tests/test.sh b/tasks/P199/tests/test.sh index 553a97b1f6492ebe3994341ff35195cd65c13370..b0cd69deff0aa09043904a3217de5960e27065f3 100644 --- a/tasks/P199/tests/test.sh +++ b/tasks/P199/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack P199 -python3 "$here/drb.py" replay P199 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay P199 diff --git a/tasks/P204/oracle/verification-01.tar.gz.part-001 b/tasks/P204/oracle/verification-01.tar.gz.part-001 new file mode 100644 index 0000000000000000000000000000000000000000..d8f591fd644a4d2e774e819d06b4d3ae0a5bfd65 --- /dev/null +++ b/tasks/P204/oracle/verification-01.tar.gz.part-001 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:95c00700b49c27328e10b3dcc577e0c35bb74771d5b3e37bb79b4d208e620c8c +size 33554432 diff --git a/tasks/P204/oracle/verification-01.tar.gz.part-002 b/tasks/P204/oracle/verification-01.tar.gz.part-002 new file mode 100644 index 0000000000000000000000000000000000000000..2c9f448596a7da3d90900406897bdf9564e2a090 --- /dev/null +++ b/tasks/P204/oracle/verification-01.tar.gz.part-002 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7214c9c333980d427c037f384c743f48a33c002f8534cd87bb67d690c3108e02 +size 33554432 diff --git a/tasks/P204/oracle/verification-01.tar.gz.part-003 b/tasks/P204/oracle/verification-01.tar.gz.part-003 new file mode 100644 index 0000000000000000000000000000000000000000..f27ec359bd83780d04b410d4b5ec5f300fd706b8 --- /dev/null +++ b/tasks/P204/oracle/verification-01.tar.gz.part-003 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8b7aacf77793a83a14fb38f6f1fe91f94a6d765bfdc90bd2f57ae08964d526f5 +size 33554432 diff --git a/tasks/P204/oracle/verification-01.tar.gz.part-004 b/tasks/P204/oracle/verification-01.tar.gz.part-004 new file mode 100644 index 0000000000000000000000000000000000000000..b996d80f1c50e0fbdb9cafde7596118424da9988 --- /dev/null +++ b/tasks/P204/oracle/verification-01.tar.gz.part-004 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1db704d5f402b32949ce235bd8bf606ad85de56afbaeff14ac7c9d93bf3737a7 +size 33554432 diff --git a/tasks/P204/oracle/verification-02.tar.gz.part-001 b/tasks/P204/oracle/verification-02.tar.gz.part-001 new file mode 100644 index 0000000000000000000000000000000000000000..7141f89d990b3615334401974da1bfb6ad2c1b19 --- /dev/null +++ b/tasks/P204/oracle/verification-02.tar.gz.part-001 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e31c058a4a0298c3d63a68c1710ba69733ec3083127f333e9625dd0c35aabaff +size 33554432 diff --git a/tasks/P204/oracle/verification-02.tar.gz.part-002 b/tasks/P204/oracle/verification-02.tar.gz.part-002 new file mode 100644 index 0000000000000000000000000000000000000000..9c4dc7f7e8998b0df0bc845de9e077585a9dc7cc --- /dev/null +++ b/tasks/P204/oracle/verification-02.tar.gz.part-002 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:73e7f2a4879b55fe92c07ced9fdea628f6198eea268593cfdf6abf425cf03629 +size 33554432 diff --git a/tasks/P204/oracle/verification-02.tar.gz.part-003 b/tasks/P204/oracle/verification-02.tar.gz.part-003 new file mode 100644 index 0000000000000000000000000000000000000000..aa051fcb0d367164d7753d2ae5c0665e9dc260d4 --- /dev/null +++ b/tasks/P204/oracle/verification-02.tar.gz.part-003 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:173908dcf85c76cfd89feea3fcac7e870139c4fcff4bcccb6f6a56ee10f47c0a +size 33554432 diff --git a/tasks/P204/oracle/verification-02.tar.gz.part-004 b/tasks/P204/oracle/verification-02.tar.gz.part-004 new file mode 100644 index 0000000000000000000000000000000000000000..055a15fe6ae44954548e3e245c5d3dc869845cb8 --- /dev/null +++ b/tasks/P204/oracle/verification-02.tar.gz.part-004 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f7f5c484bd986efa19d6595f041208e9a7810d4841059f2f93463ed5d222ddbe +size 33554432 diff --git a/tasks/P204/oracle/verification-03.tar.gz.part-001 b/tasks/P204/oracle/verification-03.tar.gz.part-001 new file mode 100644 index 0000000000000000000000000000000000000000..1904dcd7a110db1035507ea3fc7a3e50c41f3877 --- /dev/null +++ b/tasks/P204/oracle/verification-03.tar.gz.part-001 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1fe4c0924ada1fecd66344f1d6ccf0d81a2108b15eb8c07ff16c57a44b95e094 +size 33554432 diff --git a/tasks/P204/oracle/verification-03.tar.gz.part-002 b/tasks/P204/oracle/verification-03.tar.gz.part-002 new file mode 100644 index 0000000000000000000000000000000000000000..93b37d364a0d646069c91daad84cf6565cb27826 --- /dev/null +++ b/tasks/P204/oracle/verification-03.tar.gz.part-002 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:540242e778162760958a6ae2a2b89f5260b0f1d06b3d148b5eb192751b6243dc +size 33554432 diff --git a/tasks/P204/oracle/verification-03.tar.gz.part-003 b/tasks/P204/oracle/verification-03.tar.gz.part-003 new file mode 100644 index 0000000000000000000000000000000000000000..bcbe097484e0dac667475a3970f2d697ab9ee174 --- /dev/null +++ b/tasks/P204/oracle/verification-03.tar.gz.part-003 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:90099829972a4da16e59eee21c1d4fc87397d3825b37194a6bc93067120a7ebc +size 33554432 diff --git a/tasks/P204/oracle/verification-03.tar.gz.part-004 b/tasks/P204/oracle/verification-03.tar.gz.part-004 new file mode 100644 index 0000000000000000000000000000000000000000..c431998eab0cccc22936e57901fda31ab1a9756a --- /dev/null +++ b/tasks/P204/oracle/verification-03.tar.gz.part-004 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4b9bf4388623f0a1849d657889c1445e1dcd65e66979aa5bb8d4d11e0a4bbb67 +size 33554432 diff --git a/tasks/P204/oracle/verification-04.tar.gz.part-001 b/tasks/P204/oracle/verification-04.tar.gz.part-001 new file mode 100644 index 0000000000000000000000000000000000000000..c3cfd9d923c36f5b789c95e18501712c1cf3b671 --- /dev/null +++ b/tasks/P204/oracle/verification-04.tar.gz.part-001 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:19cf75285e0a74425de0740abd16c3613176127eb199e553a4dd761dd8012be6 +size 33554432 diff --git a/tasks/P204/oracle/verification-04.tar.gz.part-002 b/tasks/P204/oracle/verification-04.tar.gz.part-002 new file mode 100644 index 0000000000000000000000000000000000000000..1a2e16083e501b4873bd71807db7427849aa4b76 --- /dev/null +++ b/tasks/P204/oracle/verification-04.tar.gz.part-002 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:207015defbb9dfccac691c7daadb422b9b222f0f58b1320da3723ed65ce4ef12 +size 33554432 diff --git a/tasks/P204/oracle/verification-04.tar.gz.part-003 b/tasks/P204/oracle/verification-04.tar.gz.part-003 new file mode 100644 index 0000000000000000000000000000000000000000..1763957515b712ed81375cfb2115331aac067cbd --- /dev/null +++ b/tasks/P204/oracle/verification-04.tar.gz.part-003 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:43b6142ff53cefd46c404bace0a1a8320ca16f835d7a21f73add1eb48dd35ada +size 33554432 diff --git a/tasks/P204/oracle/verification-04.tar.gz.part-004 b/tasks/P204/oracle/verification-04.tar.gz.part-004 new file mode 100644 index 0000000000000000000000000000000000000000..ccbea1ce91d6722202248146d90070fe19e88833 --- /dev/null +++ b/tasks/P204/oracle/verification-04.tar.gz.part-004 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9ea3769a249c1307f436065e02f2cc5676484f77f75df7486c5ad584e2556bb7 +size 33554432 diff --git a/tasks/P204/oracle/verification-05.tar.gz.part-001 b/tasks/P204/oracle/verification-05.tar.gz.part-001 new file mode 100644 index 0000000000000000000000000000000000000000..13b1ae5567166a1d850b843cd503a0dec3a15a31 --- /dev/null +++ b/tasks/P204/oracle/verification-05.tar.gz.part-001 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f6c6eaabee6d609a692d14342714358da5445048d4a88f85234f9fb48ee456a8 +size 33554432 diff --git a/tasks/P204/oracle/verification-05.tar.gz.part-002 b/tasks/P204/oracle/verification-05.tar.gz.part-002 new file mode 100644 index 0000000000000000000000000000000000000000..9dd7244a8d7a15ecda1ebe647e10a891d256ab4a --- /dev/null +++ b/tasks/P204/oracle/verification-05.tar.gz.part-002 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:df39f5623477ea60fd40b3384de585a0d19d0526117127d357ee49e4d8f13778 +size 33554432 diff --git a/tasks/P204/oracle/verification-05.tar.gz.part-003 b/tasks/P204/oracle/verification-05.tar.gz.part-003 new file mode 100644 index 0000000000000000000000000000000000000000..bdb804c56ebb00b7d512272c89b32b97e60583ce --- /dev/null +++ b/tasks/P204/oracle/verification-05.tar.gz.part-003 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:70034c410d813e06f71f0e70cbae98e21d6f3c3a2b5eb58e9c014f058b38b92b +size 33554432 diff --git a/tasks/P204/oracle/verification-05.tar.gz.part-004 b/tasks/P204/oracle/verification-05.tar.gz.part-004 new file mode 100644 index 0000000000000000000000000000000000000000..b3c12e1d808e1466bafd583ae4e932cf714cf8db --- /dev/null +++ b/tasks/P204/oracle/verification-05.tar.gz.part-004 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2a3c7d7f649fae8d50a5090fda6fadea3cbc77a3bcc2a1a4fac1dc4a651b065e +size 33554432 diff --git a/tasks/P204/oracle/verification-06.tar.gz.part-001 b/tasks/P204/oracle/verification-06.tar.gz.part-001 new file mode 100644 index 0000000000000000000000000000000000000000..825f383e7361ef8e51f4c86a38cc1b27b72fd0ff --- /dev/null +++ b/tasks/P204/oracle/verification-06.tar.gz.part-001 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c385ebc20d21e19739784dc0336784ba46329dfd0d41ae63281db279988511e1 +size 33554432 diff --git a/tasks/P204/oracle/verification-06.tar.gz.part-002 b/tasks/P204/oracle/verification-06.tar.gz.part-002 new file mode 100644 index 0000000000000000000000000000000000000000..6cc75e4faed6316c8a183086cd786678032f68d8 --- /dev/null +++ b/tasks/P204/oracle/verification-06.tar.gz.part-002 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:64eaaeb2400d868425af43beb21994ad4edae4246398eca634790ae93cb16f2d +size 33554432 diff --git a/tasks/P204/oracle/verification-06.tar.gz.part-003 b/tasks/P204/oracle/verification-06.tar.gz.part-003 new file mode 100644 index 0000000000000000000000000000000000000000..80423f45e292fb91ab069ee2c4cdcfee8ed4169c --- /dev/null +++ b/tasks/P204/oracle/verification-06.tar.gz.part-003 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d7ecca8990ab5acd8e17c33c8f0d0854c30bbbe37caebc142e5c1601c21ddeac +size 33554432 diff --git a/tasks/P204/oracle/verification-06.tar.gz.part-004 b/tasks/P204/oracle/verification-06.tar.gz.part-004 new file mode 100644 index 0000000000000000000000000000000000000000..f969f1036f94e94e416fbd28e8e7fc8e866b7b8b --- /dev/null +++ b/tasks/P204/oracle/verification-06.tar.gz.part-004 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1a899de1667060b5ee2cbb3874a5dd74c5f0214f78f645cb28448a766bb9492b +size 33554432 diff --git a/tasks/P204/oracle/verification-07.tar.gz.part-001 b/tasks/P204/oracle/verification-07.tar.gz.part-001 new file mode 100644 index 0000000000000000000000000000000000000000..9ed4e9231c66400b0e29dd51d0de78a241680b8d --- /dev/null +++ b/tasks/P204/oracle/verification-07.tar.gz.part-001 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:030b6f4e0e97e2f3d0a86d04c569c0f8630457c3677a2ddd6327ae5567a3cc3e +size 33554432 diff --git a/tasks/P204/oracle/verification-07.tar.gz.part-002 b/tasks/P204/oracle/verification-07.tar.gz.part-002 new file mode 100644 index 0000000000000000000000000000000000000000..a6e35eb0b3de32b068a30e6255c80a15bd579336 --- /dev/null +++ b/tasks/P204/oracle/verification-07.tar.gz.part-002 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:700de4c0daee6c8729961ec01f3dbd18239d99493831280b97689962cc18365e +size 33554432 diff --git a/tasks/P204/tests/test.sh b/tasks/P204/tests/test.sh index f4437f527d8320363735b92968f5a0d5ec4e4584..c2f860849119207eb45c1fa0bf5e136ee6bbf8b5 100644 --- a/tasks/P204/tests/test.sh +++ b/tasks/P204/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack P204 -python3 "$here/drb.py" replay P204 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay P204 diff --git a/tasks/P206/tests/test.sh b/tasks/P206/tests/test.sh index 80f072e56410c409900b3e44651b50fdc3a6fd78..1144ff4a9e59d07873892abbd57fc44684ed70a4 100644 --- a/tasks/P206/tests/test.sh +++ b/tasks/P206/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack P206 -python3 "$here/drb.py" replay P206 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay P206 diff --git a/tasks/P207/tests/test.sh b/tasks/P207/tests/test.sh index a7a399c7b5be6697ca5c4719523472d453d3cdc0..a1e1af469152652e249a0a8f45bbe6d4633c8d88 100644 --- a/tasks/P207/tests/test.sh +++ b/tasks/P207/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack P207 -python3 "$here/drb.py" replay P207 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay P207 diff --git a/tasks/P210/tests/test.sh b/tasks/P210/tests/test.sh index 34146d363e9dc41e21bda01e8b73fe697472bb4f..ef482afc8626222353e122754770e74c5dbed83e 100644 --- a/tasks/P210/tests/test.sh +++ b/tasks/P210/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack P210 -python3 "$here/drb.py" replay P210 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay P210 diff --git a/tasks/P213/tests/test.sh b/tasks/P213/tests/test.sh index b0592bbe0bc4322952d647d7c20cdc1a8b0b9db4..00c6085fce318e93362efc16e4086b233a46c6b1 100644 --- a/tasks/P213/tests/test.sh +++ b/tasks/P213/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack P213 -python3 "$here/drb.py" replay P213 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay P213 diff --git a/tasks/P219/tests/test.sh b/tasks/P219/tests/test.sh index 0ffc34ac5072fbec6286a112a8a3028e2ae83623..3307e57a6c546bcde34b50dad569a666b5c048c7 100644 --- a/tasks/P219/tests/test.sh +++ b/tasks/P219/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack P219 -python3 "$here/drb.py" replay P219 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay P219 diff --git a/tasks/P223/tests/test.sh b/tasks/P223/tests/test.sh index 392a3c58c14573e01dbf4a26236aeaaf77cbbc73..d731070ccfb1135076191b548e9e6418e0850bbe 100644 --- a/tasks/P223/tests/test.sh +++ b/tasks/P223/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack P223 -python3 "$here/drb.py" replay P223 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay P223 diff --git a/tasks/P227/tests/test.sh b/tasks/P227/tests/test.sh index 8d438846a59215fd671db8aeb5bf55f62ec55105..5a6ddc133bd2d0230c695928fef6ce51062d93e0 100644 --- a/tasks/P227/tests/test.sh +++ b/tasks/P227/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack P227 -python3 "$here/drb.py" replay P227 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay P227 diff --git a/tasks/P234/tests/test.sh b/tasks/P234/tests/test.sh index fd2d7396d5ee32440c56c5a7a59fd10a1a3eb59a..220e31327563fa44bca9341f5e1deabd8b907274 100644 --- a/tasks/P234/tests/test.sh +++ b/tasks/P234/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack P234 -python3 "$here/drb.py" replay P234 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay P234 diff --git a/tasks/P240/tests/test.sh b/tasks/P240/tests/test.sh index acc195d51c89ebbe8e8e390270dab65056af6eb0..508e1f185a0c95c232e16b7830d584c50c182f7f 100644 --- a/tasks/P240/tests/test.sh +++ b/tasks/P240/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack P240 -python3 "$here/drb.py" replay P240 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay P240 diff --git a/tasks/P248/tests/test.sh b/tasks/P248/tests/test.sh index c52230171693c92cfb3aa06634da92d62ee108f3..a81c62d1ff87e26bc9b57bb7dfcefa4d507e6c99 100644 --- a/tasks/P248/tests/test.sh +++ b/tasks/P248/tests/test.sh @@ -1,5 +1,4 @@ #!/bin/sh set -eu -here=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) -python3 "$here/drb.py" unpack P248 -python3 "$here/drb.py" replay P248 +base=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd) +exec python3 "$base/drb.py" replay P248