Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1597cb5

Browse files
knizhnikkelvich
authored andcommitted
Add runxtests.sh
1 parente9c405a commit1597cb5

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+
raiseBaseException
163163
conn.commit()
164164

165165
self.exec_tx('total',tx)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp