Skip to content

Commit e1bc85d

Browse files
committed
Allow parallel do_verify calls
Signed-off-by: mdouglas47 <mdouglas47@bloomberg.net>
1 parent 12f8cb0 commit e1bc85d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/tools/runit_common.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,13 @@ sendtocluster()
7272

7373
do_verify()
7474
{
75-
tbl=$1
76-
$CDB2SQL_EXE --tabs ${CDB2_OPTIONS} ${DBNAME} default "exec procedure sys.cmd.verify('$tbl', 'parallel')" &> verify_$tbl.out
75+
local -r tbl=$1
76+
local verify_output
77+
verify_output=$($CDB2SQL_EXE --tabs ${CDB2_OPTIONS} ${DBNAME} default "exec procedure sys.cmd.verify('${tbl}', 'parallel')")
7778

78-
if ! grep succeeded verify_$tbl.out > /dev/null ; then
79-
grep succeeded verify_$tbl.out | head -10
80-
failexit "verify $tbl had errors"
79+
if ! echo "${verify_output}" | grep -q "succeeded" ; then
80+
echo "Verify output for ${tbl}: '${verify_output}'"
81+
failexit "verify ${tbl} had errors"
8182
fi
8283
}
8384

0 commit comments

Comments
 (0)