Don't copy same files twice in copy integration tests (#273)
* Don't copy same files twice in copy integration tests * Use error from RunCommandWithoutTest
This commit is contained in:
parent
954b6129d6
commit
53b5fb41d2
|
|
@ -30,7 +30,7 @@ func RunCommandWithoutTest(cmd *exec.Cmd) ([]byte, error) {
|
||||||
fmt.Println(cmd.Args)
|
fmt.Println(cmd.Args)
|
||||||
fmt.Println(string(output))
|
fmt.Println(string(output))
|
||||||
}
|
}
|
||||||
return output, nil
|
return output, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// RunCommand will run cmd and if it fails will output relevant info for debugging
|
// RunCommand will run cmd and if it fails will output relevant info for debugging
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
qup
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
que
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
quz
|
||||||
|
|
@ -9,7 +9,7 @@ COPY ./ dir/
|
||||||
COPY . newdir
|
COPY . newdir
|
||||||
COPY context/bar /baz/
|
COPY context/bar /baz/
|
||||||
COPY ["context/foo", "/tmp/foo" ]
|
COPY ["context/foo", "/tmp/foo" ]
|
||||||
COPY context/b* /baz/
|
COPY context/q* /qux/
|
||||||
COPY context/foo context/bar/ba? /test/
|
COPY context/foo context/bar/ba? /test/
|
||||||
COPY context/arr[[]0].txt /mydir/
|
COPY context/arr[[]0].txt /mydir/
|
||||||
COPY context/bar/bat .
|
COPY context/bar/bat .
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ COPY ./ dir/
|
||||||
COPY . newdir
|
COPY . newdir
|
||||||
COPY context/bar /baz/
|
COPY context/bar /baz/
|
||||||
COPY ["context/foo", "/tmp/foo" ]
|
COPY ["context/foo", "/tmp/foo" ]
|
||||||
COPY context/b* /baz/
|
COPY context/q* /qux/
|
||||||
COPY context/foo context/bar/ba? /test/
|
COPY context/foo context/bar/ba? /test/
|
||||||
COPY context/arr[[]0].txt /mydir/
|
COPY context/arr[[]0].txt /mydir/
|
||||||
COPY context/bar/bat .
|
COPY context/bar/bat .
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ COPY ./ dir/
|
||||||
COPY . newdir
|
COPY . newdir
|
||||||
COPY context/bar /baz/
|
COPY context/bar /baz/
|
||||||
COPY ["context/foo", "/tmp/foo" ]
|
COPY ["context/foo", "/tmp/foo" ]
|
||||||
COPY context/b* /baz/
|
COPY context/q* /qux/
|
||||||
COPY context/foo context/bar/ba? /test/
|
COPY context/foo context/bar/ba? /test/
|
||||||
COPY context/arr[[]0].txt /mydir/
|
COPY context/arr[[]0].txt /mydir/
|
||||||
COPY context/bar/bat .
|
COPY context/bar/bat .
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue