From 0f348adac24f12d4340a8cb28394bc53a42d0956 Mon Sep 17 00:00:00 2001 From: R1kaB3rN <100738684+R1kaB3rN@users.noreply.github.com> Date: Tue, 24 Dec 2024 16:32:17 -0800 Subject: [PATCH] tests: update file lock test --- tests/test_flock.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/tests/test_flock.sh b/tests/test_flock.sh index df60c9155..185d03d38 100644 --- a/tests/test_flock.sh +++ b/tests/test_flock.sh @@ -1,4 +1,5 @@ #!/usr/bin/env sh +set -e # # Ensure umu-launcher does not download its fetched resources more than once @@ -16,12 +17,9 @@ wait grep "exited with wait status" "$tmp1" # Ensure the 2nd proc didn't download the runtime -if ! grep -E "\(latest\), please wait..." "$tmp2"; then - exit 1 -fi +! grep -E "\(latest\), please wait..." "$tmp2" # Ensure the 2nd proc didn't download Proton -grep "Downloading" "$tmp2" -if ! grep -E "exited with wait status" "$tmp2"; then - exit 1 -fi +! grep "Downloading" "$tmp2" + +grep -E "exited with wait status" "$tmp2"