mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 13:53:10 +00:00
tests/exec: Wait after writing to a file before executing it
Otherwise we might get "text file is busy", or worse no error at all. Hoping .2 seconds is enough here.
This commit is contained in:
parent
e9582c41b2
commit
537b3f6cb1
1 changed files with 2 additions and 0 deletions
|
@ -13,6 +13,8 @@ echo "neg failed: $status"
|
|||
set -l f (mktemp)
|
||||
echo "#!/bin/sh"\r\n"echo foo" > $f
|
||||
chmod +x $f
|
||||
# Cheesy sleep to avoid "text file is busy"
|
||||
sleep 0.2
|
||||
$f
|
||||
#CHECKERR: Failed to execute process '{{.*}}'. Reason:
|
||||
#CHECKERR: The file uses windows line endings (\r\n). Run dos2unix or similar to fix it.
|
||||
|
|
Loading…
Reference in a new issue