Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 1597cb5

Browse files
knizhnikkelvich
authored andcommitted
Add runxtests.sh
1 parent e9c405a commit 1597cb5

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ xcheck:
4848
cd tests2 && docker network rm tests2_net || true
4949
cd tests2 && blockade up
5050
sleep 20 # wait for mmts init
51-
cd tests2 && python3 test_recovery.py || true
51+
cd tests2 && python3 test_recovery.py
5252
#cd tests2 && blockade destroy
5353

runxtests.sh

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
iterations=${1:-10}
2+
pkill -9 python
3+
pkill -9 postgres
4+
succeed=0
5+
failed=0
6+
SECONDS=0
7+
for ((i=0; i<$iterations; i++))
8+
do
9+
if make xcheck
10+
then
11+
((succeed++))
12+
else
13+
((failed++))
14+
fi
15+
done
16+
echo "Elapsed time for $iterations iterations: $SECONDS seconds ($succeed succeed, $failed failed)"

tests2/lib/bank_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def tx(conn, cur):
159159
cur.execute('select mtm.get_snapshot()')
160160
res = cur.fetchone()
161161
print("Isolation error, total = %d, node = %d, snapshot = %d" % (total,self.node_id,res[0]))
162-
#raise BaseException
162+
raise BaseException
163163
conn.commit()
164164

165165
self.exec_tx('total', tx)

0 commit comments

Comments
 (0)