From 20e1fc8621514498bbb04603129d37010431a65e Mon Sep 17 00:00:00 2001 From: Thomas Cooper <57812123+coopernetes@users.noreply.github.com> Date: Sat, 14 Oct 2023 13:34:09 -0400 Subject: [PATCH] update flags section in docs --- README.md | 29 ++++++++++++++++------------- tests/structure_test_tests.sh | 4 ---- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index ae852d71..595aa11b 100644 --- a/README.md +++ b/README.md @@ -378,19 +378,22 @@ container_structure_test( ### Flags: `container-structure-test test -h` ``` - -c, --config stringArray test config files - -d, --driver string driver to use when running tests (default "docker") - -f, --force force run of host driver (without user prompt) - -h, --help help for test - -i, --image string path to test image - --metadata string path to image metadata file - --no-color no color in the output - -o, --output string output format for the test report (available format: text, json, junit) (default "text") - --pull force a pull of the image before running tests - -q, --quiet flag to suppress output - --runtime string runtime to use with docker driver - --save preserve created containers after test run - --test-report string generate test report and write it to specified file (supported format: json, junit; default: json) + -c, --config stringArray test config files + --default-image-tag string default image tag to used when loading images to the daemon. required when --image-from-oci-layout refers to a oci layout lacking the reference annotation. + -d, --driver string driver to use when running tests (default "docker") + -f, --force force run of host driver (without user prompt) + -h, --help help for test + -i, --image string path to test image + --image-from-oci-layout string path to the oci layout to test against + --metadata string path to image metadata file + --no-color no color in the output + -o, --output string output format for the test report (available format: text, json, junit) (default "text") + --platform string Set platform if host is multi-platform capable (default "linux/amd64") + --pull force a pull of the image before running tests + -q, --quiet flag to suppress output + --runtime string runtime to use with docker driver + --save preserve created containers after test run + --test-report string generate test report and write it to specified file (supported format: json, junit; default: json) ``` See this [example repo](https://github.com/nkubala/structure-test-examples) for a full working example. diff --git a/tests/structure_test_tests.sh b/tests/structure_test_tests.sh index bd8182cc..39bba2bc 100755 --- a/tests/structure_test_tests.sh +++ b/tests/structure_test_tests.sh @@ -19,10 +19,6 @@ #End to end tests to make sure the structure tests do what we expect them #to do on a known quantity, the latest debian docker image. -if [[ -n "$DEBUG" ]]; -then - set -x -fi failures=0 # Get the architecture to load the right configurations