mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 19:03:38 +08: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
|
@ -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 New Issue
Block a user