forked from M-Labs/nix-scripts
testing hydra log replacement hack
This commit is contained in:
parent
50a0c28cbc
commit
8446f474ec
@ -1,3 +1,14 @@
|
||||
import os
|
||||
import json
|
||||
import bz2
|
||||
import sys
|
||||
|
||||
os.system("artiq_flash -t kc705 -V nist_clock")
|
||||
with open(sys.argv[1], "r") as f:
|
||||
hydra_json = json.load(f)
|
||||
|
||||
drv = hydra_json["drvPath"]
|
||||
assert drv.startswith("/nix/store/")
|
||||
drv = drv[len("/nix/store/"):]
|
||||
hydra_log = "/var/lib/hydra/build-logs/" + drv[:2] + "/" + drv[2:]
|
||||
|
||||
with bz2.BZ2File(hydra_log, "w") as f:
|
||||
f.write(b"hack successful")
|
||||
|
Loading…
Reference in New Issue
Block a user