summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-08-14 10:17:23 +0300
committerLars Wirzenius <liw@liw.fi>2020-08-14 10:50:27 +0300
commite0c099011fe902c52933992bc5e70c9a3e363c52 (patch)
treeb829645290de3915379be891dd77c81a487b930c /check
parent8fb1eba3225eacc9a56bd0422c2a3d323458b502 (diff)
downloadick-contractor-e0c099011fe902c52933992bc5e70c9a3e363c52.tar.gz
fix: use files in srcdir for passing in manager address, env vars
Subplot now clears the environment before running scenarios so we can't use $CONTRACTOR_ADDRESS to pass in the manager's address. We also need the SSH agent's address so we can authenticate into the manager. set up test.env get env from test.env
Diffstat (limited to 'check')
-rwxr-xr-xcheck4
1 files changed, 3 insertions, 1 deletions
diff --git a/check b/check
index cde86a6..bc57b7a 100755
--- a/check
+++ b/check
@@ -4,4 +4,6 @@ set -eu
rm -f test.py
black --check contractor *.py
-CONTRACTOR_ADDRESS="$1" sp-codegen contractor.md -o test.py --run
+echo "$1" > test.address
+echo "SSH_AUTH_SOCK=$SSH_AUTH_SOCK" > test.env
+sp-codegen contractor.md -o test.py --run