-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Hi nix package maintainer for await here. I'm trying to incorporate tests_await.py into the build, but 7 of the tests fail (40 pass).
If you can offer any help / advice of what if anything I can do to fix these, I would very much appreciate it!
Many thanks.
FAILED
tests/test_await.py::TestDiffMode::test_diff_mode_no_changes
🔍 Running: ./await --diff -fVo "echo 'static output'; false"
📝 Expecting: Should show static output without highlighting
✅ Exit code: 0
📤 Stdout: static output
📤 Stderr:
FAILED
tests/test_await.py::TestPlaceholderSubstitution::test_chained_placeholders
🔍 Running: ./await -Vo "echo -n 10" "echo -n 20" "echo \\1 \\2"
📝 Expecting: Should show placeholder substitution in action
✅ Exit code: 0
📤 Stdout: 10
20
📤 Stderr:
FAILED
tests/test_await.py::TestExecFlag::test_exec_not_run_on_timeout
🔍 Running: ./await --exec "touch /build/tmp/await_exec_fail_test" "false"
📝 Expecting: Should NOT run exec when command keeps failing
⏰ Command timed out after 2.0s
📤 Partial stderr:
⣾ false
⣷ false
⣯ false
⣟ false
⡿ false
FAILED
tests/test_await.py::TestExecFlag::test_exec_with_output
🔍 Running: ./await --stdout --exec "echo EXEC_RAN" "true"
📝 Expecting: Should show exec command output
⏰ Command timed out after 3.0s
📤 Partial stderr: ⣾ true
⣷ true
FAILED
tests/test_await.py::TestNoStderrFlag::test_no_stderr_flag
🔍 Running: ./await -fVoE "echo stdout; echo stderr >&2; false"
📝 Expecting: Should show stdout but suppress stderr
✅ Exit code: 0
📤 Stdout: stdout
📤 Stderr:
FAILED
tests/test_await.py::TestAdvancedFeatures::test_diff_with_unicode
🔍 Running: ./await --diff -fVo "/build/tmp/unicode_test.sh; false"
📝 Expecting: Should handle unicode in diff mode
✅ Exit code: 0
📤 Stderr: sh: /build/tmp/unicode_test.sh: not found
FAILED
tests/test_await.py::TestAdvancedFeatures::test_forever_flag_with_any
🔍 Running: ./await --forever --any "true" "false"
📝 Expecting: Should timeout because --forever prevents exit
⏰ Command timed out after 1.0s
📤 Partial stderr:
⣾ true
⣾ false
⣷ true
⣷ false
⣯ true
Metadata
Metadata
Assignees
Labels
No labels