As explained in the test comment itself, the error message may vary on
different platform.
This patch adds another condition found while testing w/o network
access on RHEL based distros (Fedora, RHEL, CentOS).
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
| ... | ... |
@@ -37,6 +37,7 @@ func (s *DockerSuite) TestImportBadURL(c *check.C) {
|
| 37 | 37 |
c.Assert(err, checker.NotNil, check.Commentf("import was supposed to fail but didn't"))
|
| 38 | 38 |
// Depending on your system you can get either of these errors |
| 39 | 39 |
if !strings.Contains(out, "dial tcp") && |
| 40 |
+ !strings.Contains(out, "ApplyLayer exit status 1 stdout: stderr: archive/tar: invalid tar header") && |
|
| 40 | 41 |
!strings.Contains(out, "Error processing tar file") {
|
| 41 | 42 |
c.Fatalf("expected an error msg but didn't get one.\nErr: %v\nOut: %v", err, out)
|
| 42 | 43 |
} |