From 867c42bf4f0d4418ecad4cd5187639ad32d826a7 Mon Sep 17 00:00:00 2001 From: Bernard Davison Date: Mon, 5 Mar 2012 21:48:58 +1100 Subject: [PATCH] Chaning how the verbosity of the tests is set. --- tests/examples/01_compile_all_example_targets.t | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/examples/01_compile_all_example_targets.t b/tests/examples/01_compile_all_example_targets.t index be8c544183..7a7dc245fe 100644 --- a/tests/examples/01_compile_all_example_targets.t +++ b/tests/examples/01_compile_all_example_targets.t @@ -8,6 +8,9 @@ use Program; $|++; my $examples = XMLin("$ENV{'PAPARAZZI_SRC'}/conf/conf.xml.example"); +use Data::Dumper; +warn Dumper(\%ENV); + ok(1, "Parsed the example file"); foreach my $example (sort keys%{$examples->{'aircraft'}}) { @@ -19,10 +22,10 @@ foreach my $example (sort keys%{$examples->{'aircraft'}}) { my $make_upload_options = "AIRCRAFT=$example $target.compile"; my $upload_output = run_program( - "Attempting to build the firmware $target for the airframe $example.", - $ENV{'PAPARAZZI_SRC'}, - "make $make_upload_options", - 0,1); + "Attempting to build the firmware $target for the airframe $example.", + $ENV{'PAPARAZZI_SRC'}, + "make $make_upload_options", + $ENV->{'TEST_VERBOSE'},1); unlike($upload_output, '/Error/i', "The upload output does not contain the word \"Error\""); } }