Skip to content

Commit 3994cea

Browse files
committed
Update test to use printf instead of echo to make it environment-agnostic
1 parent 5302b53 commit 3994cea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def test_run_with_command_flags(dotenv_path):
283283
Here, we want to run `echo --version`, not `dotenv --version`.
284284
"""
285285

286-
result = invoke_sub(["--file", dotenv_path, "run", "echo", "--version"])
286+
result = invoke_sub(["--file", dotenv_path, "run", "printf", "%s\n", "--version"])
287287

288288
assert result.returncode == 0
289289
assert result.stdout.strip() == "--version"

0 commit comments

Comments
 (0)