diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2018-07-15 19:12:14 +0200 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2018-07-15 22:07:08 +0200 |
commit | c798c33de23fdad0a5ca783a63d349cbf7381640 (patch) | |
tree | ce9729c0496e4f7edf32133b3bc941264838f5bc /pkgs/development/libraries/flatpak/fix-test-paths.patch | |
parent | 0b2b4b8c4e729535a61db56468809c5c2d3d175c (diff) | |
download | nixpkgs-c798c33de23fdad0a5ca783a63d349cbf7381640.tar nixpkgs-c798c33de23fdad0a5ca783a63d349cbf7381640.tar.gz nixpkgs-c798c33de23fdad0a5ca783a63d349cbf7381640.tar.bz2 nixpkgs-c798c33de23fdad0a5ca783a63d349cbf7381640.tar.lz nixpkgs-c798c33de23fdad0a5ca783a63d349cbf7381640.tar.xz nixpkgs-c798c33de23fdad0a5ca783a63d349cbf7381640.tar.zst nixpkgs-c798c33de23fdad0a5ca783a63d349cbf7381640.zip |
flatpak: 0.99.2 → 0.99.3
Diffstat (limited to 'pkgs/development/libraries/flatpak/fix-test-paths.patch')
-rw-r--r-- | pkgs/development/libraries/flatpak/fix-test-paths.patch | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pkgs/development/libraries/flatpak/fix-test-paths.patch b/pkgs/development/libraries/flatpak/fix-test-paths.patch index 0c2b7da79eb..3f4bc56721e 100644 --- a/pkgs/development/libraries/flatpak/fix-test-paths.patch +++ b/pkgs/development/libraries/flatpak/fix-test-paths.patch @@ -1,6 +1,6 @@ --- a/tests/libtest.sh +++ b/tests/libtest.sh -@@ -324,7 +324,7 @@ +@@ -315,7 +315,7 @@ # running installed-tests: assume we know what we're doing : elif ! "$FLATPAK_BWRAP" --unshare-ipc --unshare-net --unshare-pid \ @@ -9,7 +9,7 @@ sed -e 's/^/# /' < bwrap-result echo "1..0 # SKIP Cannot run bwrap" exit 0 -@@ -332,7 +332,7 @@ +@@ -323,7 +323,7 @@ } skip_without_python2 () { @@ -18,7 +18,7 @@ echo "1..0 # SKIP this test requires /usr/bin/python2 (2.7) support" exit 0 fi -@@ -352,12 +352,12 @@ +@@ -335,12 +335,12 @@ export DBUS_SESSION_BUS_ADDRESS="$(cat dbus-session-bus-address)" DBUS_SESSION_BUS_PID="$(cat dbus-session-bus-pid)" @@ -135,12 +135,12 @@ collection_args=--collection-id=${COLLECTION_ID} --- a/tests/testlibrary.c +++ b/tests/testlibrary.c -@@ -610,7 +610,7 @@ +@@ -584,7 +584,7 @@ { gint exit_code = 0; - char *argv[] = { (char *)bwrap, "--unshare-ipc", "--unshare-net", -- "--unshare-pid", "--ro-bind", "/", "/", "/bin/true", NULL }; -+ "--unshare-pid", "--ro-bind", "/", "/", "@coreutils@/bin/true", NULL }; + char *argv[] = { (char *) bwrap, "--unshare-ipc", "--unshare-net", +- "--unshare-pid", "--ro-bind", "/", "/", "/bin/true", NULL }; ++ "--unshare-pid", "--ro-bind", "/", "/", "@coreutils@/bin/true", NULL }; g_autofree char *argv_str = g_strjoinv (" ", argv); g_test_message ("Spawning %s", argv_str); g_spawn_sync (NULL, argv, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, NULL, &exit_code, &error); |