lix/tests
aszlig 6567ab95a0
build-remote: Fix missing log output
The storeUri variable in the build-remote hook is declared very much to
the start of the main function and a bunch of lines later, the same
variable gets checked via hasPrefix() but it gets assigned *after* that
check when the most suitable machine for the build was choosen.

So I guess this was just a typo in d16fd24973
and what we really want is to either checkd the prefix *after* assigning
storeUri or use bestMachine->storeUri directly.

I choose the latter, because the former could introduce even more
regressions if the try block where the variable gets assigned terminates
early.

Nevertheless, the reason why the log output didn't work is because
hasPrefix() checked for "ssh://" in front of storeUri, but if the
storeUri isn't set correctly (or at all), we don't get the log file
descriptor set up properly, leading to no log output.

I've adjusted the remote-builds test to include a regression test for
this, so that we can make sure we get a build output when using remote
builds.

In addition to that I've tested this with two of my build farms and the
build logs are emitted correctly again.

Signed-off-by: aszlig <aszlig@nix.build>
2017-11-25 01:34:18 +01:00
..
lang Revert "Don't parse "x:x" as a URI" 2017-11-14 15:10:52 +01:00
add.sh
binary-cache.sh Test: Replace --option with the corresponding flag 2017-11-20 17:50:49 +01:00
build-hook.nix
build-remote.sh Allow shorter syntax for chroot stores 2017-10-24 15:32:38 +02:00
case-hack.sh
case.nar
check-refs.nix
check-refs.sh
check-reqs.nix
check-reqs.sh
common.sh.in Doh 2017-11-15 12:23:31 +01:00
config.nix Pass lists/attrsets to bash as (associative) arrays 2017-10-25 13:01:50 +02:00
dependencies.builder0.sh
dependencies.builder1.sh
dependencies.builder2.sh
dependencies.nix
dependencies.sh
dump-db.sh
export-graph.nix
export-graph.sh
export.sh
fetchGit.sh fetchGit/fetchMercurial: Fix directory inclusion check 2017-11-21 19:34:46 +01:00
fetchMercurial.sh fetchGit/fetchMercurial: Fix directory inclusion check 2017-11-21 19:34:46 +01:00
fetchurl.sh Test: Replace --option with the corresponding flag 2017-11-20 17:50:49 +01:00
filter-source.nix
filter-source.sh
fixed.builder1.sh
fixed.builder2.sh
fixed.nix
fixed.sh
gc-concurrent.builder.sh
gc-concurrent.nix
gc-concurrent.sh
gc-concurrent2.builder.sh
gc-runtime.nix
gc-runtime.sh
gc.sh
hash-check.nix
hash.sh
import-derivation.nix
import-derivation.sh
init.sh Rename a few configuration options 2017-08-31 14:28:25 +02:00
install-darwin.sh Rename PINCH_ME_IM_SILLY to ALLOW_PREEXISTING_INSTALLATION 2017-07-14 12:11:33 -04:00
lang.sh
linux-sandbox.sh Test: Replace --option with the corresponding flag 2017-11-20 17:50:49 +01:00
local.mk Add tests for "nix run" 2017-11-20 18:36:36 +01:00
logging.sh Test: Replace --option with the corresponding flag 2017-11-20 17:50:49 +01:00
misc.sh
multiple-outputs.nix
multiple-outputs.sh nix-shell/nix-build: Support .drv files again 2017-11-24 18:08:35 +01:00
nar-access.nix Rename tests/nar-index -> tests/nar-access 2017-11-14 13:27:40 +01:00
nar-access.sh nix ls-{nar,store}: Don't abort on missing files 2017-11-14 14:49:06 +01:00
nix-build.sh nix-shell/nix-build: Support .drv files again 2017-11-24 18:08:35 +01:00
nix-channel.sh Fix tests 2017-10-02 23:45:27 -04:00
nix-copy-closure.nix
nix-profile.sh
nix-shell.sh nix-shell/nix-build: Support .drv files again 2017-11-24 18:08:35 +01:00
optimise-store.sh Test: Replace --option with the corresponding flag 2017-11-20 17:50:49 +01:00
parallel.builder.sh
parallel.nix
parallel.sh
pass-as-file.sh
placeholders.sh
referrers.sh
remote-builds.nix build-remote: Fix missing log output 2017-11-25 01:34:18 +01:00
remote-store.sh
repair.sh Test: Replace --option with the corresponding flag 2017-11-20 17:50:49 +01:00
restricted.sh Test: Replace --option with the corresponding flag 2017-11-20 17:50:49 +01:00
run.nix Add tests for "nix run" 2017-11-20 18:36:36 +01:00
run.sh tests/run.sh: Fix /build conflict when building in a sandbox 2017-11-21 19:43:12 +01:00
secure-drv-outputs.nix
secure-drv-outputs.sh
setuid.nix Test: Replace --option with the corresponding flag 2017-11-20 17:50:49 +01:00
shell.nix
shell.shebang.sh Test: Replace --option with the corresponding flag 2017-11-20 17:50:49 +01:00
signing.sh Add tests for verifying/copying content-addressed paths 2017-11-20 19:11:02 +01:00
simple.builder.sh
simple.nix
simple.sh
structured-attrs.nix exportReferencesGraph: Allow exporting a list of store paths 2017-10-25 15:18:49 +02:00
structured-attrs.sh Pass lists/attrsets to bash as (associative) arrays 2017-10-25 13:01:50 +02:00
tarball.sh
timeout.nix Replace Unicode quotes in user-facing strings by ASCII 2017-07-30 12:32:45 +01:00
timeout.sh Test: Replace --option with the corresponding flag 2017-11-20 17:50:49 +01:00
user-envs.builder.sh
user-envs.nix
user-envs.sh