From b63b815f6e7bcc490d40d0b0bca0cc731db8f0de Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Sun, 30 Jun 2019 14:24:42 +0300 Subject: [PATCH] avoid confusing. --- .appveyor.yml | 1 + fortune-mod/run-tests.pl | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) 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 ); -- 2.50.1