diff options
Diffstat (limited to 'test/suite-unittests.sh')
-rwxr-xr-x | test/suite-unittests.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/suite-unittests.sh b/test/suite-unittests.sh index f10c65a00a..f9e0c68561 100755 --- a/test/suite-unittests.sh +++ b/test/suite-unittests.sh @@ -70,8 +70,13 @@ unittests_step_exntest() { } unittests_step_lua_int64_test() { - $TSHARK -r $CAPTURE_DIR/dhcp.pcap -X lua_script:$TESTS_DIR/lua/int64.lua > testout.txt 2>&1 + if [ $HAVE_LUA -ne 0 ]; then + test_step_skipped + return + fi + # Tshark catches lua script failures, so we have to parse the output. + $TSHARK -r $CAPTURE_DIR/dhcp.pcap -X lua_script:$TESTS_DIR/lua/int64.lua > testout.txt 2>&1 if grep -q "All tests passed!" testout.txt; then test_step_ok else |