File tree 2 files changed +18
-9
lines changed
2 files changed +18
-9
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ cd /pg/src/src/test/regress
4
+
5
+ ./pg_regress --use-existing \
6
+ --schedule=parallel_schedule \
7
+ --host=node1 \
8
+ --user=postgres \
9
+ --dlpath=/pg/src/src/test/regress/
10
+
11
+ cat regression.diffs
Original file line number Diff line number Diff line change 3
3
import time
4
4
5
5
class RecoveryTest (unittest .TestCase ):
6
+
6
7
@classmethod
7
8
def setUpClass (self ):
8
9
subprocess .check_call (['docker-compose' ,'up' ,
10
+ '--build' ,
9
11
'--force-recreate' ,
10
12
'-d' ])
11
13
@@ -14,16 +16,12 @@ def tearDownClass(self):
14
16
subprocess .check_call (['docker-compose' ,'down' ])
15
17
16
18
def test_regression (self ):
19
+ # XXX: make smth clever here
17
20
time .sleep (30 )
18
- subprocess .check_call (['../../../src/test/regress/pg_regress' ,
19
- '--use-existing' ,
20
- '--schedule=../../../src/test/regress/parallel_schedule' ,
21
- '--host=127.0.0.1' ,
22
- '--port=15432' ,
23
- '--user=postgres' ,
24
- '--inputdir=../../../src/test/regress/' ,
25
- '--outputdir=../../../src/test/regress/' ,
26
- '--dlpath=/pg/src/src/test/regress/'
21
+ subprocess .check_call (['docker' , 'run' ,
22
+ '--network=tests2_default' ,
23
+ 'tests2_node1' ,
24
+ '/pg/mmts/tests2/docker-regress.sh' ,
27
25
])
28
26
29
27
if __name__ == '__main__' :
You can’t perform that action at this time.
0 commit comments