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:
Christie Wilson 2018-08-03 10:01:29 -07:00 committed by priyawadhwa
parent 954b6129d6
commit 53b5fb41d2
7 changed files with 7 additions and 4 deletions

View File

@ -30,7 +30,7 @@ func RunCommandWithoutTest(cmd *exec.Cmd) ([]byte, error) {
fmt.Println(cmd.Args)
fmt.Println(string(output))
}
return output, nil
return output, err
}
// RunCommand will run cmd and if it fails will output relevant info for debugging

View File

@ -0,0 +1 @@
qup

View File

@ -0,0 +1 @@
que

View File

@ -0,0 +1 @@
quz

View File

@ -9,7 +9,7 @@ COPY ./ dir/
COPY . newdir
COPY context/bar /baz/
COPY ["context/foo", "/tmp/foo" ]
COPY context/b* /baz/
COPY context/q* /qux/
COPY context/foo context/bar/ba? /test/
COPY context/arr[[]0].txt /mydir/
COPY context/bar/bat .

View File

@ -9,7 +9,7 @@ COPY ./ dir/
COPY . newdir
COPY context/bar /baz/
COPY ["context/foo", "/tmp/foo" ]
COPY context/b* /baz/
COPY context/q* /qux/
COPY context/foo context/bar/ba? /test/
COPY context/arr[[]0].txt /mydir/
COPY context/bar/bat .

View File

@ -9,7 +9,7 @@ COPY ./ dir/
COPY . newdir
COPY context/bar /baz/
COPY ["context/foo", "/tmp/foo" ]
COPY context/b* /baz/
COPY context/q* /qux/
COPY context/foo context/bar/ba? /test/
COPY context/arr[[]0].txt /mydir/
COPY context/bar/bat .