Commit 8a6d5b9b 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 e90e5db8
...@@ -617,7 +617,7 @@ if(BUILD_TESTING OR BUILD_SRC_TESTS) ...@@ -617,7 +617,7 @@ if(BUILD_TESTING OR BUILD_SRC_TESTS)
foreach(abortrecover_test ${abortrecover_tests}) foreach(abortrecover_test ${abortrecover_tests})
get_filename_component(base ${abortrecover_test} NAME_WE) get_filename_component(base ${abortrecover_test} NAME_WE)
add_test(NAME ydb/${base}.abortrecover 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) endforeach(abortrecover_test)
foreach(loader_test ${loader_tests}) foreach(loader_test ${loader_tests})
......
#!/usr/bin/env bash #!/usr/bin/env bash
if [[ $# -lt 2 ]]; then exit 1; fi if [[ $# -ne 1 ]]; then exit 1; fi
bin=$1; shift bin=$1; shift
abortcode=$1; shift
$bin --test $bin --test
if [[ $? -ne $abortcode ]] if [[ $? -eq 0 ]]
then then
echo $bin --test did not return $abortcode echo $bin --test did not crash
exit 1 exit 1
else else
set -e 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