diff options
author | Matthias Clasen <mclasen@redhat.com> | 2018-10-09 09:24:09 -0400 |
---|---|---|
committer | Alexander Larsson <alexander.larsson@gmail.com> | 2018-10-10 12:21:15 +0200 |
commit | d4df921940b3ea727170a89eeefa994824076932 (patch) | |
tree | f07f35e8d199694e1dccec7b2225a46d69351bdc /tests/make-test-app.sh | |
parent | 83bb5b9c524ef2c494191ca1c277aa590d471a0c (diff) | |
download | flatpak-d4df921940b3ea727170a89eeefa994824076932.tar.gz |
Modify the instance test
Avoid the initial sleep statement, and instead poll
for the child pid.
We also need the test app to stick around and not
exit right away, so change it to exec a shell.
Diffstat (limited to 'tests/make-test-app.sh')
-rwxr-xr-x | tests/make-test-app.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/make-test-app.sh b/tests/make-test-app.sh index 9ea8ca15..7ba186cf 100755 --- a/tests/make-test-app.sh +++ b/tests/make-test-app.sh @@ -36,6 +36,9 @@ 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 + exec sh +fi EOF chmod a+x ${DIR}/files/bin/hello.sh |