Skip to content
Prev Previous commit
Next Next commit
Update test to use printf instead of echo to make it environment-agno…
…stic
  • Loading branch information
asymness committed Jan 17, 2026
commit 3994cea9d54a93dd1881d7ccd78a1a0db89f0d5d
2 changes: 1 addition & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def test_run_with_command_flags(dotenv_path):
Here, we want to run `echo --version`, not `dotenv --version`.
"""

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

assert result.returncode == 0
assert result.stdout.strip() == "--version"
Expand Down
Loading