veyron/.../test.sh: update test.sh scripts to use a single dir to share binaries.
Also use different work dir for each test.
Change-Id: Id17c8c262ddd49dd8cbdcd807c3c1a0d404de0ce
diff --git a/security/agent/testchild.sh b/security/agent/testchild.sh
index addf884..7a9fa58 100644
--- a/security/agent/testchild.sh
+++ b/security/agent/testchild.sh
@@ -8,8 +8,9 @@
if [[ -n "${VEYRON_IDENTITY}" ]]; then
shell_test::fail "line ${LINENO}: identity preserved"
fi
- shell_test::start_server ./pingpong --server
- ./pingpong || shell_test::fail "line ${LINENO}: ping"
+ PINGPONG_BIN="$(shell_test::build_go_binary 'veyron.io/veyron/veyron/security/agent/test' 'pinpong')"
+ shell_test::start_server "${PINGPONG_BIN}" --server
+ "${PINGPONG_BIN}" || shell_test::fail "line ${LINENO}: ping"
shell_test::pass
}