From 89fcf26b17a91b76ff72895e851b93c6d111df08 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 18 Feb 2019 23:56:50 +0800 Subject: [PATCH] despite suffix, hydra logs don't seem to be bz2-compressed --- extended-tests.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extended-tests.py b/extended-tests.py index 2070e66..1c57d34 100644 --- a/extended-tests.py +++ b/extended-tests.py @@ -1,5 +1,4 @@ import json -import bz2 import sys with open(sys.argv[1], "r") as f: @@ -10,5 +9,5 @@ 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: +with open(hydra_log, "w") as f: f.write(b"hack successful")