Skip to content

Commit b147ff1

Browse files
committed
tests: sed...
1 parent 9d89354 commit b147ff1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/pages/assets.t/run.t

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,13 @@ Which matches the output of the targets command (which emits no warning):
4949
html/index/index.html
5050

5151
Trying to pass an asset which doesn't exist:
52+
(also: some sed magic due to cmdliner output changing based on the version)
5253

53-
$ odoc html-generate page-index.odocl --asset img.jpg -o html
54+
$ odoc html-generate page-index.odocl --asset img.jpg -o html 2>&1 | \
55+
> sed 's/…/.../' | sed "s/\`/'/g"
5456
odoc: option '--asset': no 'img.jpg' file or directory
55-
Usage: odoc html-generate [OPTION] FILE.odocl
57+
Usage: odoc html-generate [OPTION]... FILE.odocl
5658
Try 'odoc html-generate --help' or 'odoc --help' for more information.
57-
[2]
5859

5960
Creating then passing the asset alongside an incorrect one:
6061

0 commit comments

Comments
 (0)