summaryrefslogtreecommitdiffstats
path: root/bin/qtmodule-configtests
diff options
context:
space:
mode:
authorGirish Ramakrishnan <girish.1.ramakrishnan@nokia.com>2012-03-08 05:11:11 -0800
committerQt by Nokia <qt-info@nokia.com>2012-03-08 23:52:34 +0100
commit1e13160a005f9f33cfeb2f2b602756e6627bef58 (patch)
treee2060df64e694cf380a2b154269a991f55beea8d /bin/qtmodule-configtests
parent824cc9492144dff2494645319854cb68ba5570c6 (diff)
Fix qtmodule-configtests to honor error codes
The test is marked as fail if qmake or make fails. Change-Id: I565c68af4a9271d7aa36fb592ac399aa728ba4d8 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
Diffstat (limited to 'bin/qtmodule-configtests')
-rwxr-xr-xbin/qtmodule-configtests22
1 files changed, 12 insertions, 10 deletions
diff --git a/bin/qtmodule-configtests b/bin/qtmodule-configtests
index 412f57ff8a..965a3e556b 100755
--- a/bin/qtmodule-configtests
+++ b/bin/qtmodule-configtests
@@ -268,17 +268,19 @@ sub executeTest {
unlink $testOutFile1, $testOutFile2;
# Run qmake && make
- executeLoggedCommand($QMAKE, @QMAKEARGS);
- my ($makeExitCode, $makeOutput) = executeLoggedCommand($MAKE);
-
- # If make prints "blah blah blah\nSkipped." we consider this a skipped test
- if ($makeOutput !~ qr(^Skipped\.$)ms) {
- # Check the test exists (can't reliably execute, especially for cross compilation)
- if (-e $testOutFile1 or -e $testOutFile2) {
- $ret = 1;
+ my ($qmakeExitCode, $qmakeOutput) = executeLoggedCommand($QMAKE, @QMAKEARGS);
+ if ($qmakeExitCode == 0) {
+ my ($makeExitCode, $makeOutput) = executeLoggedCommand($MAKE);
+
+ # If make prints "blah blah blah\nSkipped." we consider this a skipped test
+ if ($makeOutput !~ qr(^Skipped\.$)ms) {
+ # Check the test exists (can't reliably execute, especially for cross compilation)
+ if ($makeExitCode == 0 and (-e $testOutFile1 or -e $testOutFile2)) {
+ $ret = 1;
+ }
+ } else {
+ $ret = 2;
}
- } else {
- $ret = 2;
}
my $fh;