Subject: | Parallel Testing causes tests to fail |
Due to there being some implied order required in the test suite, test runs that call the last test before others results in their required files being missing.
grep 'config.pl' -r .
./Changes: - Generate t/config.pl before the tests.
./t/z-cleanup.t:unlink('t/config.pl');
./t/01-config.t:my $fh = IO::File->new('t/config.pl', 'w')
./t/01-config.t: or BAIL_OUT("Could not open t/config.pl for writing.\n".
./t/common.pl:my $conf = require 't/config.pl';
grep 'common.pl' -r .
./t/driver.t: require 't/common.pl';
./t/attr.t: require 't/common.pl';
./t/device.t: require 't/common.pl';
./t/module.t: require 't/common.pl';
./t/class.t: require 't/common.pl';
./t/notabs.t: require 't/common.pl';
./t/bus.t: require 't/common.pl';
./t/examples.t: require 't/common.pl';
./t/class_device.t: require 't/common.pl';
./MANIFEST:t/common.pl
Attached is the output if `prove -blvr -j $N t/` for values of $N of 1 and 2 for comparison.
Subject: | jobs=1 |
Message body not shown because it is not plain text.
Subject: | jobs=2 |
Message body not shown because it is not plain text.