Commit 353c72c9 authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

refs #5537 fix abortrecover test runner to handle other failure cases


git-svn-id: file:///svn/toku/tokudb@48384 c7de825b-a66e-492c-adef-691d508d4ae1
parent 4a5cc47c
......@@ -617,7 +617,7 @@ if(BUILD_TESTING OR BUILD_SRC_TESTS)
foreach(abortrecover_test ${abortrecover_tests})
get_filename_component(base ${abortrecover_test} NAME_WE)
add_test(NAME ydb/${base}.abortrecover
COMMAND run_abortrecover_test.sh $<TARGET_FILE:${base}.tdb> 137)
COMMAND run_abortrecover_test.sh $<TARGET_FILE:${base}.tdb>)
endforeach(abortrecover_test)
foreach(loader_test ${loader_tests})
......
#!/usr/bin/env bash
if [[ $# -lt 2 ]]; then exit 1; fi
if [[ $# -ne 1 ]]; then exit 1; fi
bin=$1; shift
abortcode=$1; shift
$bin --test
if [[ $? -ne $abortcode ]]
if [[ $? -eq 0 ]]
then
echo $bin --test did not return $abortcode
echo $bin --test did not crash
exit 1
else
set -e
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment