Closed ppisar closed 3 years ago
Invoking t/integration/test.t without a working directory works:
$ prove -l t/integration/test.t t/integration/test.t .. ok All tests successful. Files=1, Tests=13, 6 wallclock secs ( 0.02 usr 0.00 sys + 9.68 cusr 2.72 csys = 12.42 CPU) Result: PASS
But specifying the test with a current directory breaks the test:
$ prove -l ./t/integration/test.t ./t/integration/test.t .. 4/? # Failed test 'Exit Value Check' # at ./t/integration/test.t line 75. # +-----+----+-------+ # | GOT | OP | CHECK | # +-----+----+-------+ # | 256 | eq | 0 | # +-----+----+-------+ # Failed test ''fail.tx' was excluded using '--exclude-file' option' # at ./t/integration/test.t line 72. # Comparison matched (it should not). # Command = /usr/bin/perl /home/test/fedora/perl-Test2-Harness/Test2-Harness-1.000043/scripts/yath -D/home/test/fedora/perl-Test2-Harness/Test2-Harness-1.000043/lib test -I/home/test/fedora/perl-Test2-Harness/Test2-Harness-1.000043/lib --exclude-file=./t/integration/test/fail.txx ./t/integration/test/pass.tx ./t/integration/test/fail.txx # Exit = 256 # ==== Output ==== # [ FAIL ] job 1 + Fail # ( DIAG ) job 1 Failed test 'Fail' # ( DIAG ) job 1 at t/integration/test/fail.txx line 3. # ( DIAG ) job 1 Seeded srand with seed '20210308' from local date. # ( FAILED ) job 1 t/integration/test/fail.txx # < REASON > job 1 Test script returned error (Err: 1) # < REASON > job 1 Assertion failures were encountered (Count: 1) # ( PASSED ) job 2 t/integration/test/pass.tx # # The following jobs failed: # +--------------------------------------+-----------------------------+ # | Job ID | Test File | # +--------------------------------------+-----------------------------+ # | 4B6A4B78-8023-11EB-B233-7C186E1C8A1A | t/integration/test/fail.txx | # +--------------------------------------+-----------------------------+ # # Yath Result Summary # ----------------------------------------------------------------------------------- # Fail Count: 1 # File Count: 2 # Assertion Count: 2 # Wall Time: 0.36 seconds # CPU Time: 0.55 seconds (usr: 0.12s | sys: 0.02s | cusr: 0.34s | csys: 0.07s) # CPU Usage: 153% # --> Result: FAILED <-- # # # ======== [...] ./t/integration/test.t .. 7/? # Failed test ''_base.xt' was skipped' # at ./t/integration/test.t line 112. # +-------------------------------+----+-------------------------------+ # | GOT | OP | CHECK | # +-------------------------------+----+-------------------------------+ # | ( SKIPPED) job 1 t/integ | =~ | (?^:SKIPPED.*\.\/t\/integrati | # | ration/test-symlinks/_base.xt | | on\/test\-symlinks\/_base\.xt | # | - Do Not Run on the Main b | | ) | # | ase.t\n | | | # | ( PASSED ) job 2 t/integ | | | # | ration/test-symlinks/symlink_ | | | # | to_base.xt\n | | | # | \n | | | # +-------------------------------+----+-------------------------------+ [...]
Invoking t/integration/test.t without a working directory works:
But specifying the test with a current directory breaks the test: