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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 16 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy