Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 5558800

Browse files
authored
remove oneshot args in test entrypoint scripts (#80)
1 parent 9d8ca06 commit 5558800

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

tests/bot-entrypoint.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
set -euo pipefail
33
IFS=$'\n\t'
44

5+
export "KEYBASE_USERNAME=$BOT_USERNAME"
6+
export "KEYBASE_PAPERKEY=$BOT_PAPERKEY"
7+
58
# For some reason it is necessary to touch a file in /shared/ in order to get the volume permissions to work correctly
69
# when keybaseca generate runs
710
touch /shared/.keep
@@ -12,6 +15,6 @@ ls tests/envFiles/ | xargs -I {} -- bash -c 'cat tests/envFiles/{} | envsubst >
1215

1316
nohup bash -c "KEYBASE_RUN_MODE=prod kbfsfuse /keybase | grep -v 'ERROR Mounting the filesystem failed' &"
1417
sleep 3
15-
keybase oneshot --username $BOT_USERNAME --paperkey "$BOT_PAPERKEY"
18+
keybase oneshot
1619
touch /shared/ready
1720
python3 tests/bot-entrypoint.py

tests/tester-entrypoint.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
set -euo pipefail
33
IFS=$'\n\t'
44

5+
export "KEYBASE_USERNAME=$KSSH_USERNAME"
6+
export "KEYBASE_PAPERKEY=$KSSH_PAPERKEY"
7+
58
nohup bash -c "run_keybase -g &"
69

710
# Sleep until the CA bot has started
@@ -12,7 +15,7 @@ done
1215
echo ""
1316
sleep 2
1417

15-
keybase oneshot --username $KSSH_USERNAME --paperkey "$KSSH_PAPERKEY"
18+
keybase oneshot
1619

1720
echo "========================= Launched Keybase, starting tests... ========================="
1821

0 commit comments

Comments
 (0)