From 79d422b63345645e5981f58a48b3ccc1014fde94 Mon Sep 17 00:00:00 2001 From: Miles Johnson Date: Fri, 11 Aug 2023 09:44:14 -0700 Subject: [PATCH] Fix paths. --- tests/shims_test.rs | 3 ++- tests/snapshots/shims_test__can_create_local_shim.snap | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/shims_test.rs b/tests/shims_test.rs index b4e6675..774b5c6 100644 --- a/tests/shims_test.rs +++ b/tests/shims_test.rs @@ -38,5 +38,6 @@ async fn can_create_local_shim() { .path() .join(".proto/tools/schema-test/latest/shims/schema-test") ) - .unwrap()); + .unwrap() + .replace(sandbox.path().to_str().unwrap(), "/workspace")); } diff --git a/tests/snapshots/shims_test__can_create_local_shim.snap b/tests/snapshots/shims_test__can_create_local_shim.snap index 67ef936..0d0277d 100644 --- a/tests/snapshots/shims_test__can_create_local_shim.snap +++ b/tests/snapshots/shims_test__can_create_local_shim.snap @@ -1,6 +1,6 @@ --- source: tests/shims_test.rs -expression: "std::fs::read_to_string(sandbox.path().join(\".proto/tools/schema-test/latest/shims/schema-test\")).unwrap()" +expression: "std::fs::read_to_string(sandbox.path().join(\".proto/tools/schema-test/latest/shims/schema-test\")).unwrap().replace(sandbox.path().to_str().unwrap(),\n \"/workspace\")" --- #!/usr/bin/env bash set -e @@ -8,13 +8,13 @@ set -e -export PROTO_SCHEMA_TEST_DIR="/var/folders/ml/41y5w4hx6fs1hqk57hd334y40000gn/T/.tmp8LI7Z7/.proto/tools/schema-test/latest" +export PROTO_SCHEMA_TEST_DIR="/workspace/.proto/tools/schema-test/latest" -exec "/var/folders/ml/41y5w4hx6fs1hqk57hd334y40000gn/T/.tmp8LI7Z7/.proto/tools/schema-test/latest/schema-test" "$@" +exec "/workspace/.proto/tools/schema-test/latest/schema-test" "$@"