File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,16 @@ source tool/ovh/profile.sh
29
29
30
30
echo Machine name: $MACHINE_NAME
31
31
32
+ function cleanup {
33
+ tool/ovh/download-result.sh
34
+
35
+ if [[ -z $KEEP_SERVER ]]; then
36
+ openstack server delete $MACHINE_NAME
37
+ fi
38
+ }
39
+ trap cleanup ERR
40
+ trap cleanup EXIT
41
+
32
42
tool/ovh/create.sh
33
43
sleep 40
34
44
tool/ovh/clone-repo.sh $( git rev-parse HEAD)
@@ -44,9 +54,3 @@ tool/ovh/ssh-exec.sh "'
44
54
cd typedb-benchmark && . venv/bin/activate &&
45
55
nohup tool/execute-tpcc.sh --no-load --scalefactor=$SCALE_FACTOR --warehouses=$WAREHOUSES --clients=$CLIENTS --duration=$DURATION $DB & wait \$ !
46
56
'"
47
-
48
- tool/ovh/download-result.sh
49
-
50
- if [[ -z $KEEP_SERVER ]]; then
51
- openstack server delete $MACHINE_NAME
52
- fi
You can’t perform that action at this time.
0 commit comments