Signed-off-by: John Howard <jhoward@microsoft.com>
| ... | ... |
@@ -5,6 +5,7 @@ import ( |
| 5 | 5 |
"net/http" |
| 6 | 6 |
"net/http/httptest" |
| 7 | 7 |
"net/http/httputil" |
| 8 |
+ "runtime" |
|
| 8 | 9 |
"strconv" |
| 9 | 10 |
"strings" |
| 10 | 11 |
"time" |
| ... | ... |
@@ -64,6 +65,12 @@ func (s *DockerSuite) TestAPIClientVersionNewerThanServer(c *check.C) {
|
| 64 | 64 |
} |
| 65 | 65 |
|
| 66 | 66 |
func (s *DockerSuite) TestAPIClientVersionOldNotSupported(c *check.C) {
|
| 67 |
+ if daemonPlatform != runtime.GOOS {
|
|
| 68 |
+ c.Skip("Daemon platform doesn't match test platform")
|
|
| 69 |
+ } |
|
| 70 |
+ if api.MinVersion == api.DefaultVersion {
|
|
| 71 |
+ c.Skip("API MinVersion==DefaultVersion")
|
|
| 72 |
+ } |
|
| 67 | 73 |
v := strings.Split(api.MinVersion, ".") |
| 68 | 74 |
vMinInt, err := strconv.Atoi(v[1]) |
| 69 | 75 |
c.Assert(err, checker.IsNil) |