Skip to content

Commit c484a8c

Browse files
committed
More general path normalize check on Windows
1 parent 512bd80 commit c484a8c

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -360,10 +360,6 @@ jobs:
360360
if: runner.os != 'Windows'
361361
run: make -C tests/gentype_tests/typescript-react-example clean test
362362

363-
- name: Setup tmate session
364-
uses: mxschmitt/action-tmate@v3
365-
if: runner.os == 'Windows'
366-
367363
- name: Run rewatch tests
368364
run: ./rewatch/tests/suite-ci.sh
369365
shell: bash

rewatch/tests/utils.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ normalize_paths() {
3838
# Then normalize backslashes to forward slashes
3939
sed -i "s#\\\\#/#g" $1
4040
# Finally remove any remaining drive letter paths (like D:/a/rescript/rescript/rewatch/testrepo)
41-
sed -i "s#[A-Z]:/a/rescript/rescript/rewatch/testrepo##g" $1
41+
sed -i "s#[A-Z]:/\(a/\)\?[^:]*rescript/rescript/rewatch/testrepo##g" $1
4242
else
4343
sed -i "s#$(pwd_prefix)##g" $1;
4444
fi

0 commit comments

Comments
 (0)