From e0c099011fe902c52933992bc5e70c9a3e363c52 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 14 Aug 2020 10:17:23 +0300 Subject: 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 --- check | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'check') 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 -- cgit v1.2.1