Skip to content

Instantly share code, notes, and snippets.

@seemethere
Last active August 31, 2017 18:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seemethere/6128cb2391cd43b65b0ff4880af427e5 to your computer and use it in GitHub Desktop.
Save seemethere/6128cb2391cd43b65b0ff4880af427e5 to your computer and use it in GitHub Desktop.
#!/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