Skip to content

Commit

Permalink
CI: more printf instead of echo
Browse files Browse the repository at this point in the history
  • Loading branch information
ansiwen committed Nov 23, 2024
1 parent fd31a30 commit 3545400
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ test_muen_prodrive_hermes:
size=$(du -b $SERIALTXT | cut -f1)
[ "$size" == "$lastsize" ] && break
lastsize=$size
echo "."
printf "."
sleep 1
done
echo "done."
Expand Down Expand Up @@ -430,7 +430,7 @@ test_muen_msi_z790:
size=$(du -b $SERIALTXT | cut -f1)
[ "$size" == "$lastsize" ] && break
lastsize=$size
echo "."
printf "."
sleep 1
done
echo "done."
Expand Down
4 changes: 2 additions & 2 deletions src/tests/backup_restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fi
# echo "waiting for NetHSM"
# x=0
# while ! curl -m 1 -s -k -f https://${NETHSM_IP}/api/v1/health/state ; do
# echo "."
# printf "."
# ((x++>25)) && echo "time out!" && exit 1
# sleep 2
# done
Expand Down Expand Up @@ -42,7 +42,7 @@ POST_admin /v1/system/factory-reset
echo "waiting for NetHSM"
x=0
while ! curl -m 1 -s -k -f https://${NETHSM_IP}/api/v1/health/state ; do
echo "."
printf "."
((x++>25)) && echo "time out!" && exit 1
sleep 2
done
Expand Down
12 changes: 6 additions & 6 deletions tools/deploy-on-hw-z790.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ power_off ()
if is_on; then
echo "switching off"
power_off
while is_on; do echo "." ; sleep 1; done
while is_on; do printf "." ; sleep 1; done
echo
fi

if is_inserted; then
echo "ejecting media"
eject
while is_inserted; do
echo "."
printf "."
sleep 1
done
echo
Expand All @@ -71,23 +71,23 @@ fi
echo "inserting installer image $INSTALLER_URL"
insert $INSTALLER_URL

while ! is_inserted; do echo "." ; sleep 1; done
while ! is_inserted; do printf "." ; sleep 1; done
echo

echo "starting installer"
power_on

while ! is_on; do echo "." ; sleep 1; done
while ! is_on; do printf "." ; sleep 1; done
echo

echo "waiting for installer to finish (power off)"
while is_on; do echo "." ; sleep 2; done
while is_on; do printf "." ; sleep 2; done
echo

echo "ejecting installer image"
eject

while is_inserted; do echo "." ; sleep 1; done
while is_inserted; do printf "." ; sleep 1; done
echo

echo "starting NetHSM"
Expand Down
12 changes: 6 additions & 6 deletions tools/deploy-on-hw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ power_off ()
if is_on; then
echo "switching off"
power_off
while is_on; do echo "." ; sleep 1; done
while is_on; do printf "." ; sleep 1; done
echo
fi

if is_inserted; then
echo "ejecting media"
eject
while is_inserted; do
echo "."
printf "."
sleep 1
done
echo
Expand All @@ -72,23 +72,23 @@ fi
echo "inserting installer image $INSTALLER_URL"
insert $INSTALLER_URL

while ! is_inserted; do echo "." ; sleep 1; done
while ! is_inserted; do printf "." ; sleep 1; done
echo

echo "starting installer"
power_on

while ! is_on; do echo "." ; sleep 1; done
while ! is_on; do printf "." ; sleep 1; done
echo

echo "waiting for installer to finish (power off)"
while is_on; do echo "." ; sleep 2; done
while is_on; do printf "." ; sleep 2; done
echo

echo "ejecting installer image"
eject

while is_inserted; do echo "." ; sleep 1; done
while is_inserted; do printf "." ; sleep 1; done
echo

echo "starting NetHSM"
Expand Down
2 changes: 1 addition & 1 deletion tools/test-on-hw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
echo "waiting for NetHSM"
x=0
while ! curl -m 1 -s -k -f https://${NETHSM_IP}/api/v1/health/state ; do
echo "."
printf "."
((x++>25)) && echo "time out!" && exit 1
sleep 2
done
Expand Down

0 comments on commit 3545400

Please sign in to comment.