Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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