Skip to content

Commit

Permalink
remove oneshot args in test entrypoint scripts (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmou authored Feb 3, 2020
1 parent 9d8ca06 commit 5558800
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion tests/bot-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
set -euo pipefail
IFS=$'\n\t'

export "KEYBASE_USERNAME=$BOT_USERNAME"
export "KEYBASE_PAPERKEY=$BOT_PAPERKEY"

# For some reason it is necessary to touch a file in /shared/ in order to get the volume permissions to work correctly
# when keybaseca generate runs
touch /shared/.keep
Expand All @@ -12,6 +15,6 @@ ls tests/envFiles/ | xargs -I {} -- bash -c 'cat tests/envFiles/{} | envsubst >

nohup bash -c "KEYBASE_RUN_MODE=prod kbfsfuse /keybase | grep -v 'ERROR Mounting the filesystem failed' &"
sleep 3
keybase oneshot --username $BOT_USERNAME --paperkey "$BOT_PAPERKEY"
keybase oneshot
touch /shared/ready
python3 tests/bot-entrypoint.py
5 changes: 4 additions & 1 deletion tests/tester-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
set -euo pipefail
IFS=$'\n\t'

export "KEYBASE_USERNAME=$KSSH_USERNAME"
export "KEYBASE_PAPERKEY=$KSSH_PAPERKEY"

nohup bash -c "run_keybase -g &"

# Sleep until the CA bot has started
Expand All @@ -12,7 +15,7 @@ done
echo ""
sleep 2

keybase oneshot --username $KSSH_USERNAME --paperkey "$KSSH_PAPERKEY"
keybase oneshot

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

Expand Down

0 comments on commit 5558800

Please sign in to comment.