mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 01:51:14 -03: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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user