tests: pack-relocatable: Ensure commands can run in the current namespace.
authorPaul Garlick <pgarlick@tourbillion-technology.com>
Fri, 4 Dec 2020 12:20:58 +0000 (12:20 +0000)
committerPaul Garlick <pgarlick@tourbillion-technology.com>
Fri, 4 Dec 2020 13:12:08 +0000 (13:12 +0000)
* tests/guix-pack-relocatable (run_without_store): Use subshell to run
commands in the current namespace.  This avoids shell syntax and parsing
errors.

tests/guix-pack-relocatable.sh

index 2beb1b1..b90bc7f 100644 (file)
@@ -55,7 +55,7 @@ run_without_store ()
        # Run the relocatable program in the current namespaces.  This is a
        # weak test because we're going to access store items from the host
        # store.
-       $*
+       sh -c "$*"
     fi
 }