Skip to content

Commit 9bd307d

Browse files
committed
Use updated checks for resolutions
1 parent bf925e1 commit 9bd307d

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

tests/run-tests.sh

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
set -euo pipefail
3+
#set -euo pipefail
44

55
peer_names=$1
66

@@ -77,24 +77,21 @@ _EOF_
7777
fi
7878

7979

80-
resolution_check=$(psql -X -A -t -U $DBUSER -d $DBNAME -c "
81-
SELECT conflict_type
82-
FROM spock.resolutions
83-
WHERE relname = 'public.t4';
84-
")
80+
resolution_check=$(PGPASSWORD=$DBPASSWD psql -X -A -t -U $DBUSER -d $DBNAME -h ${peer_names[0]} -c " SELECT conflict_type FROM spock.resolutions WHERE relname = 'public.t4'")
8581

86-
insert_exists_count=$(echo "$resolution_check" | grep -c '^insert_exists$')
87-
delete_delete_count=$(echo "$resolution_check" | grep -c '^delete_delete$')
82+
insert_exists_count=$(echo "$resolution_check" | grep -c 'insert_exists')
83+
delete_delete_count=$(echo "$resolution_check" | grep -c 'delete_delete')
8884

8985
if [ "$insert_exists_count" -eq 1 ] && [ "$delete_delete_count" -eq 1 ];
9086
then
9187
echo "PASS: Found both insert_exists and delete_delete for public.t4"
9288
else
89+
PGPASSWORD=$DBPASSWD psql -U $DBUSER -d $DBNAME -h ${peer_names[0]} -c "select * from spock.resolutions where relname = 'public.t4'"
9390
echo "FAIL: Resolution entries for public.t4 are incorrect"
91+
echo "Resolutions check=$resolution_check"
9492
echo "Found: insert_exists=$insert_exists_count, delete_delete=$delete_delete_count"
9593
exit 1
9694
fi
97-
echo $elog_entries > /home/pgedge/spock/exception-tests.out
9895
fi
9996

10097
spockbench -h /tmp -i -s $SCALEFACTOR demo

0 commit comments

Comments
 (0)