From: Shlomi Fish Date: Sun, 30 Jun 2019 11:24:42 +0000 (+0300) Subject: avoid confusing. X-Git-Tag: fortune-mod-2.10.0~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b63b815f6e7bcc490d40d0b0bca0cc731db8f0de;p=fortune-mod avoid confusing. --- diff --git a/.appveyor.yml b/.appveyor.yml index 57dda77..2413b2f 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -30,6 +30,7 @@ test_script: - set PATH=%PATH%;c:\mingw64\lib;c:\msys64\mingw64\lib # Python3 confuses the recode build so only add it here. - SET PATH=%PATH%;C:\Python35-x64 + - SET FORTUNE_TEST_DEBUG=1 - perl CI-testing/continuous-integration-testing.pl --gen="MSYS Makefiles" cache: - C:\msys64\mingw64 diff --git a/fortune-mod/run-tests.pl b/fortune-mod/run-tests.pl index 8c01baf..304f54f 100644 --- a/fortune-mod/run-tests.pl +++ b/fortune-mod/run-tests.pl @@ -42,5 +42,8 @@ if (0) eval { do_system( { cmd => [ 'prove', glob("$src_dir/tests/t/*.t") ] } ); }; my $E = $@; -system( "python", "$src_dir/tests/fortune-m-test.py" ); +if ( $ENV{FORTUNE_TEST_DEBUG} ) +{ + system( "python", "$src_dir/tests/fortune-m-test.py" ); +} exit( $E ? 1 : 0 );