Skip to content

Commit

Permalink
test: skip test "regress" when hardware is not available
Browse files Browse the repository at this point in the history
Test "regress" needs at least two nodes with $NEEDPAGES of free memory
each. If that is not available, exit with return code 77 so that
automake will know it is supposed to skip the test.

Signed-off-by: Filipe Brandenburger <filbranden@google.com>
  • Loading branch information
filbranden committed Aug 5, 2014
1 parent 25c052a commit 4042d9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/regress
Expand Up @@ -74,7 +74,7 @@ probe_hardware()
if [ $numnodes -lt 2 ] ; then
echo "need at least two nodes with at least $NEEDPAGES each of"
echo "free memory for mempolicy regression tests"
exit 1
exit 77 # Skip test
fi
}

Expand Down

0 comments on commit 4042d9e

Please sign in to comment.