Skip to content

Commit

Permalink
build.sh: Skip tests on cross compile
Browse files Browse the repository at this point in the history
Signed-off-by: Petr Vorel <pvorel@suse.cz>
  • Loading branch information
pevik committed Jul 16, 2021
1 parent cad90f5 commit 1c9e796
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ if [ -z "$cmd" -o "$cmd" = "install" ]; then
fi

if [ -z "$cmd" -o "$cmd" = "test" ]; then
run_tests
print_logs $?
if [ -f "meson.cross" ]; then
echo "cross-compile build, skipping running tests" >&2
else
run_tests
print_logs $?
fi
fi

0 comments on commit 1c9e796

Please sign in to comment.