Skip to content

Commit e586103

Browse files
committed
fix: test
1 parent 232f788 commit e586103

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

crates/pixi_command_dispatcher/tests/integration/main.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,13 @@ pub async fn simple_test() {
194194
let output = event_tree.to_string();
195195
let output = regex::Regex::new(r"file:///[^@]+/multi-output-recipe/")
196196
.unwrap()
197-
.replace_all(&output, "file://[LOCAL_GIT_REPO]/");
198-
let output = regex::Regex::new(r"@[a-f0-9]{40}")
197+
.replace_all(&output, "file://[LOCAL_GIT_REPO]");
198+
let output = regex::Regex::new(r"rev=[a-z0-9]+")
199199
.unwrap()
200-
.replace_all(&output, "@[GIT_HASH]");
200+
.replace_all(&output, "rev=[GIT_REF]");
201+
let output = regex::Regex::new(r"#[a-f0-9]{40}")
202+
.unwrap()
203+
.replace_all(&output, "#[GIT_HASH]");
201204
insta::assert_snapshot!(output);
202205
}
203206

crates/pixi_command_dispatcher/tests/integration/snapshots/integration__simple_test.snap

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,16 @@ source: crates/pixi_command_dispatcher/tests/integration/main.rs
33
expression: output
44
---
55
Pixi solve (foobar-desktop)
6-
├── Git Checkout (file://[LOCAL_GIT_REPO]/@[GIT_HASH])
7-
├── Source metadata (foobar-desktop @ file://[LOCAL_GIT_REPO]/@[GIT_HASH] (subdir: recipe))
8-
│ └── Build backend metadata (file://[LOCAL_GIT_REPO]/@[GIT_HASH] (subdir: recipe))
6+
├── Git Checkout (file://[LOCAL_GIT_REPO]@7d54a632b7c2a08188a053988f118d7963b09e29)
7+
├── Source metadata (foobar-desktop @ git+file://[LOCAL_GIT_REPO]?subdirectory=recipe&rev=[GIT_REF]#[GIT_HASH])
98
│ └── Instantiate tool environment (pixi-build-rattler-build)
109
│ ├── Pixi solve (pixi-build-rattler-build)
1110
│ │ └── Conda solve #0
1211
│ └── Pixi install (pixi-build-rattler-build)
13-
├── Source metadata (foobar @ file://[LOCAL_GIT_REPO]/@[GIT_HASH] (subdir: recipe))
12+
├── Source metadata (foobar @ git+file://[LOCAL_GIT_REPO]?subdirectory=recipe&rev=[GIT_REF]#[GIT_HASH])
1413
└── Conda solve #1
1514
Pixi install (test-env)
16-
├── Source build (foobar @ (manifest-src: file://[LOCAL_GIT_REPO]/@[GIT_HASH] (subdir: recipe), build-src: undefined))
15+
├── Source build (foobar @ (manifest-src: git+file://[LOCAL_GIT_REPO]?subdirectory=recipe&rev=[GIT_REF]#[GIT_HASH], build-src: undefined))
1716
│ └── Backend source build (foobar)
18-
└── Source build (foobar-desktop @ (manifest-src: file://[LOCAL_GIT_REPO]/@[GIT_HASH] (subdir: recipe), build-src: undefined))
17+
└── Source build (foobar-desktop @ (manifest-src: git+file://[LOCAL_GIT_REPO]?subdirectory=recipe&rev=[GIT_REF]#[GIT_HASH], build-src: undefined))
1918
└── Backend source build (foobar-desktop)

0 commit comments

Comments
 (0)