File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 18
18
>&2 echo " fatal: failed to find $vm -part1 in /dev/zvol/$SERVO_CI_ZFS_PREFIX or /dev/zvol/$SERVO_CI_ZFS_CLONE_PREFIX "
19
19
exit 1
20
20
fi
21
- ( cd $mount ; " $@ " || : )
21
+ cd $mount
22
+ set +e
23
+ " $@ "
24
+ retval=$?
25
+ set -e
26
+ cd -
22
27
umount $mount
28
+ exit $retval
Original file line number Diff line number Diff line change @@ -71,10 +71,11 @@ if ! time virsh event --timeout 2000 -- "$image_name" lifecycle; then
71
71
exit 1
72
72
fi
73
73
74
+ >&2 echo ' [*] Checking that Servo was built correctly'
75
+ ./mount-runner.sh " $image_name " sh -c ' ls init/built_servo_once_successfully'
76
+
74
77
snapshot=$( date -u +\% FT\% RZ)
75
78
>&2 echo " [*] Taking zvol snapshot: $SERVO_CI_ZFS_CLONE_PREFIX /$image_name @build-image-$snapshot "
76
79
zfs snapshot " $SERVO_CI_ZFS_CLONE_PREFIX /$image_name @build-image-$snapshot "
77
80
78
- # TODO: check that servo was actually built correctly
79
-
80
81
>&2 echo ' [*] Done!'
Original file line number Diff line number Diff line change @@ -68,10 +68,11 @@ if ! time virsh event --timeout 2500 -- "$image_name" lifecycle; then
68
68
exit 1
69
69
fi
70
70
71
+ >&2 echo ' [*] Checking that Servo was built correctly'
72
+ ./mount-runner.sh " $image_name " sh -c ' ls -l init/built_servo_once_successfully'
73
+
71
74
snapshot=$( date -u +\% FT\% RZ)
72
75
>&2 echo " [*] Taking zvol snapshot: $SERVO_CI_ZFS_CLONE_PREFIX /$image_name @build-image-$snapshot "
73
76
zfs snapshot " $SERVO_CI_ZFS_CLONE_PREFIX /$image_name @build-image-$snapshot "
74
77
75
- # TODO: check that servo was actually built correctly
76
-
77
78
>&2 echo ' [*] Done!'
You can’t perform that action at this time.
0 commit comments