summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2013-08-15 16:36:32 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2013-08-15 17:39:24 +0200
commit1b32290b2e63fa96a3f27c75af04d14d713c4884 (patch)
tree24e9bbb3714587d7689e68422760772b9c026392
parent233d79a51cc6b922b3f0be0f5c3b460f8ea50d36 (diff)
do not call make from libapt/run-tests if its called by make
If we are called by make everything is build already and so this is just a noise nop we can just skip. (Noisy as it complains about being unable to communicate with the other makes to coordinate with the jobserver) Git-Dch: Ignore
-rwxr-xr-xtest/libapt/run-tests8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/libapt/run-tests b/test/libapt/run-tests
index f18be6d2b..4f34b03e8 100755
--- a/test/libapt/run-tests
+++ b/test/libapt/run-tests
@@ -2,9 +2,11 @@
set -e
DIR=$(readlink -f $(dirname $0))
-echo "Compiling the tests …"
-(cd $DIR && make)
-echo "Running all testcases …"
+if [ -z "$MAKELEVEL" ]; then
+ echo 'Compiling the tests …'
+ (cd $DIR && make)
+ echo 'Running all testcases …'
+fi
LDPATH="$DIR/../../build/bin"
EXT="_libapt_test"
EXIT_CODE=0