diff options
author | Marius Bakke <mbakke@fastmail.com> | 2020-04-24 17:28:11 +0200 |
---|---|---|
committer | Marius Bakke <mbakke@fastmail.com> | 2020-04-24 17:28:11 +0200 |
commit | c57d649de380da890f296428b85564cbc527bbad (patch) | |
tree | 79e9c0b5407aea91c421f7004a0da7bb1e207ba4 /tests | |
parent | 69c2e0103ab64aa6e0beb7651797de9cfd22a6d7 (diff) | |
parent | 9b42918edd3f7e9d505c874d3947c0a0815fe551 (diff) | |
download | guix-c57d649de380da890f296428b85564cbc527bbad.tar.gz |
Merge branch 'master' into core-updates
Diffstat (limited to 'tests')
-rw-r--r-- | tests/guix-pack-relocatable.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/guix-pack-relocatable.sh b/tests/guix-pack-relocatable.sh index e93610eedc..a3fd45623c 100644 --- a/tests/guix-pack-relocatable.sh +++ b/tests/guix-pack-relocatable.sh @@ -1,5 +1,5 @@ # GNU Guix --- Functional package management for GNU -# Copyright © 2018, 2019 Ludovic Courtès <ludo@gnu.org> +# Copyright © 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org> # # This file is part of GNU Guix. # @@ -72,6 +72,10 @@ then # mounting an empty file system on top of it. That way, we exercise the # wrapper code that creates the user namespace and bind-mounts the store. unshare -mrf sh -c 'mount -t tmpfs none "$STORE_PARENT"; echo "$STORE_PARENT"/*; "$test_directory/Bin/sed" --version > "$test_directory/output"' + + # Check whether the exit code is preserved. + if unshare -mrf sh -c 'mount -t tmpfs none "$STORE_PARENT"; echo "$STORE_PARENT"/*; "$test_directory/Bin/sed" --does-not-exist'; + then false; else true; fi else # Run the relocatable 'sed' in the current namespaces. This is a weak # test because we're going to access store items from the host store. |