Last active
August 31, 2017 18:06
-
-
Save seemethere/6128cb2391cd43b65b0ff4880af427e5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
fails="DockerSuite.TestRmiContainerImageNotFound | |
DockerSuite.TestRmiImageIDForceWithRunningContainersAndMultipleTags | |
DockerSuite.TestRunAttachDetachFromInvalidFlag | |
DockerSuite.TestRunWithNanoCPUs | |
DockerSuite.TestUpdateWithNanoCPUs | |
DockerSwarmSuite.TestServiceLogs | |
DockerSwarmSuite.TestSwarmNetworkPluginV2 | |
DockerSwarmSuite.TestSwarmServicePsMultipleServiceIDs" | |
curl -so "test.log" "$1" | |
echo "FOR: $1" | |
job_fails="$(grep "FAIL:.*docker" test.log | awk '{print $NF}')" | |
echo | |
echo "Passed (thought would fail):" | |
comm -13 <(echo "$job_fails" | sort) <(echo "$fails" | sort) | |
echo | |
echo "Failed (should fail)" | |
comm -12 <(echo "$job_fails" | sort) <(echo "$fails" | sort) | |
echo | |
echo "Failed (thought would pass):" | |
comm -23 <(echo "$job_fails" | sort) <(echo "$fails" | sort) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment