Commit 1cb75cd
committed
template: Fix Windows/MSYS2 test failure
On MSYS2, `/tmp` (used in `TEST_GO_ROOTDIR` via `BATS_TMPDIR`) is mapped
to `C:/Users/<user>/AppData/Local/Temp/`. When `git clone ... ` is called
with a path starting with `/tmp`, its output show the `C:/Users/...`
path instead.
The fix is to update the `assert_output_matches` expression to match
only the `scripts/go-script-bash` suffix of the clone path instead of
the entire path.1 parent a454f98 commit 1cb75cd
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
| |||
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
42 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
0 commit comments