mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-18 10:39:18 +02:00
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:
committed by
priyawadhwa
parent
954b6129d6
commit
53b5fb41d2
+1
-1
@@ -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
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
qup
|
||||
@@ -0,0 +1 @@
|
||||
que
|
||||
@@ -0,0 +1 @@
|
||||
quz
|
||||
@@ -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 .
|
||||
|
||||
@@ -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 .
|
||||
|
||||
@@ -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 .
|
||||
|
||||
Reference in New Issue
Block a user