Skip to content

Commit 53bcbf0

Browse files
committed
tests: Fix tests if the HOST triple is too long
The HOST triple defaults to the current host and gets printed in the help output. The CLI tests currently match it with `[..]`. However, if the triple is too long clap might introduce a line break, which `[..]` can't handle. Use `...` instead to match arbitrary lines at the position. Not elegant, but these are just smoke tests to ensure there's no major probelm. They are not meant to ensure 100% stable output. Fixes: #226
1 parent eba3f0f commit 53bcbf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/cmd/h.stdout

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Options:
1515
(YYYY-MM-DD), git tag name (e.g. 1.58.0) or git commit SHA.
1616
--force-install Force installation over existing artifacts
1717
-h, --help Print help information (use `--help` for more detail)
18-
--host <HOST> Host triple for the compiler [default: [..]]
18+
...
1919
--install <INSTALL> Install the given artifact
2020
--preserve Preserve the downloaded artifacts
2121
--preserve-target Preserve the target directory used for builds

0 commit comments

Comments
 (0)