Skip to content

Commit 74b23b2

Browse files
Instead have cmd.exe dump out path
1 parent 6b372c9 commit 74b23b2

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

ci/run.sh

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,16 @@ else
3333
fi
3434

3535
if [ "${TEST_UNC:-}" = "1" ]; then
36-
function run() {
37-
cmd.exe /c cargo build --manifest-path "testcrate\\Cargo.toml" --target $target --target-dir "\\\\?\\%TEMP%\\test_unc" "$@"
38-
}
39-
run
40-
run --release
41-
run --features c
42-
run --features c --release
43-
run --features no-asm
44-
run --features no-asm --release
45-
run --features no-f16-f128
46-
run --features no-f16-f128 --release
36+
path=$(cmd.exe "/C echo \\\\?\\%cd%\\testcrate\\target_unc")
37+
run="cargo test --manifest-path testcrate/Cargo.toml --target $target --target-dir $path"
38+
$run
39+
$run --release
40+
$run --features c
41+
$run --features c --release
42+
$run --features no-asm
43+
$run --features no-asm --release
44+
$run --features no-f16-f128
45+
$run --features no-f16-f128 --release
4746
fi
4847

4948
if [ -d /builtins-target ]; then

0 commit comments

Comments
 (0)