mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 08:51:14 -03:00
tests: use command instead of absolute paths
These binaries are not guaranteed to exist at /bin/X on all systems, e.g. nixos does not place binaries there, but as long as they are in the PATH we can find them with command. Part of #12544
This commit is contained in:
committed by
Johannes Altmanninger
parent
d1d4cbf3f8
commit
a0d8d27f45
@@ -10,7 +10,7 @@ with tempfile.NamedTemporaryFile(mode="r", encoding="utf8") as tf:
|
||||
fish_pid = sp.spawn.pid
|
||||
sp.expect_prompt()
|
||||
sp.sendline(
|
||||
"function myexit --on-event fish_exit; /bin/echo $fish_pid > {filename}; end".format(
|
||||
"function myexit --on-event fish_exit; command echo $fish_pid > {filename}; end".format(
|
||||
filename=tf.name
|
||||
)
|
||||
)
|
||||
|
||||
@@ -11,7 +11,7 @@ send, sendline, expect_prompt, expect_str = (
|
||||
)
|
||||
|
||||
expect_prompt()
|
||||
sendline("function echo_wrap ; /bin/echo $argv ; sleep 0.1; end")
|
||||
sendline("function echo_wrap ; command echo $argv ; sleep 0.1; end")
|
||||
expect_prompt()
|
||||
|
||||
if not os.environ.get("fish_test_helper", ""):
|
||||
|
||||
Reference in New Issue
Block a user