Skip to content

Commit

Permalink
tests: update file lock test
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed Dec 25, 2024
1 parent b833e68 commit 0f348ad
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions tests/test_flock.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env sh
set -e

#
# Ensure umu-launcher does not download its fetched resources more than once
Expand All @@ -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"

0 comments on commit 0f348ad

Please sign in to comment.