linebuffer
This commit is contained in:
parent
5cf0bf91c0
commit
1ef23e9750
1 changed files with 4 additions and 2 deletions
|
@ -45,7 +45,7 @@ if len(inputs_to_copy) != 0:
|
||||||
subprocess.run(["@nix@", "copy"] + list(inputs_to_copy) + ["--to", "ssh://build-rainbow-resort", "--no-check-sigs"], check=True, stdout=subprocess.DEVNULL)
|
subprocess.run(["@nix@", "copy"] + list(inputs_to_copy) + ["--to", "ssh://build-rainbow-resort", "--no-check-sigs"], check=True, stdout=subprocess.DEVNULL)
|
||||||
|
|
||||||
# Evaluate on target
|
# Evaluate on target
|
||||||
result = subprocess.run(["@ssh@", "build-rainbow-resort", "nix-eval-jobs"] + list(map(shlex.quote, remote_args)), check=True, stdout=subprocess.PIPE, text=True)
|
result = subprocess.Popen(["@ssh@", "build-rainbow-resort", "nix-eval-jobs"] + list(map(shlex.quote, remote_args)), bufsize=1, stdout=subprocess.PIPE, text=True)
|
||||||
|
|
||||||
for line in iter(result.stdout.readline, ""):
|
for line in iter(result.stdout.readline, ""):
|
||||||
try:
|
try:
|
||||||
|
@ -59,4 +59,6 @@ for line in iter(result.stdout.readline, ""):
|
||||||
# Now we are done with this job, we can tell hydra about it
|
# Now we are done with this job, we can tell hydra about it
|
||||||
print(line)
|
print(line)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e, file=sys.stderr)
|
print(e, file=sys.stderr)
|
||||||
|
|
||||||
|
sys.exit(result.wait())
|
Loading…
Reference in a new issue