this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

cmd/cue: fix tests under different platforms

Normalize filenames under Windows.
Copy with the fact that `ls` returns different status codes in different platforms.

Change-Id: I689fc08c152fc84190444171fee70d2bbb258ba5
Reviewed-on: https://cue-review.googlesource.com/c/cue/+/3480
Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>

authored by

Roger Peppe and committed by
Marcel van Lohuizen
22a42d4c 8d81be45

+5 -3
+4
cmd/cue/cmd/script_test.go
··· 15 15 } 16 16 17 17 func TestMain(m *testing.M) { 18 + // Setting inTest causes filenames printed in error messages 19 + // to be normalized so the output looks the same on Unix 20 + // as Windows. 21 + inTest = true 18 22 os.Exit(testscript.RunMain(m, map[string]func() int{ 19 23 "cue": Main, 20 24 }))
+1 -3
cmd/cue/cmd/testdata/script/cmd_errcode.txt
··· 1 1 ! cue cmd errcode 2 2 ! stdout . 3 - cmp stderr cmd_baddisplay.out 3 + stderr '^command "ls --badflags" failed: exit status [12]$' 4 4 5 - -- cmd_baddisplay.out -- 6 - command "ls --badflags" failed: exit status 2 7 5 -- task.cue -- 8 6 package home 9 7 message: "Hello world!"