Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
Fix paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Aug 11, 2023
1 parent a822285 commit 79d422b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion tests/shims_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
}
6 changes: 3 additions & 3 deletions tests/snapshots/shims_test__can_create_local_shim.snap
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
---
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
[ -n "$PROTO_DEBUG" ] && set -x



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" "$@"


0 comments on commit 79d422b

Please sign in to comment.