mirror of
https://github.com/flatpak/flatpak.git
synced 2026-05-04 05:56:28 -04:00
Make the test app not hang
We want an app that keeps running for some of the library tests, but other tests expect it to return right away. Make this opt-in.
This commit is contained in:
committed by
Alexander Larsson
parent
d4df921940
commit
c8db26cc35
@@ -36,7 +36,7 @@ mkdir -p ${DIR}/files/bin
|
||||
cat > ${DIR}/files/bin/hello.sh <<EOF
|
||||
#!/bin/sh
|
||||
echo "Hello world, from a sandbox$EXTRA"
|
||||
if [ "$EXTRA" = "UPDATED" ]; then
|
||||
if [ "$EXTRA" = "SPIN" ]; then
|
||||
exec sh
|
||||
fi
|
||||
EOF
|
||||
|
||||
@@ -1189,7 +1189,7 @@ static void
|
||||
update_test_app (void)
|
||||
{
|
||||
g_autofree char *arg0 = NULL;
|
||||
char *argv[] = { NULL, "repos/test", "", "", "UPDATED", NULL };
|
||||
char *argv[] = { NULL, "repos/test", "", "", "SPIN", NULL };
|
||||
|
||||
arg0 = g_test_build_filename (G_TEST_DIST, "make-test-app.sh", NULL);
|
||||
argv[0] = arg0;
|
||||
|
||||
Reference in New Issue
Block a user