github.com/khulnasoft/cli@v0.0.0-20240402070845-01bcad7beefa/scripts/test/e2e/wrapper (about)

     1  #!/usr/bin/env bash
     2  # Setup, run and teardown e2e test suite in containers.
     3  set -eu -o pipefail
     4  
     5  engine_host=$(./scripts/test/e2e/run setup)
     6  testexit=0
     7  
     8  test_cmd="test"
     9  if [ -n "${TEST_DEBUG-}" ]; then
    10      test_cmd="shell"
    11  fi
    12  
    13  ./scripts/test/e2e/run "$test_cmd" "$engine_host" || testexit="$?"
    14  
    15  ./scripts/test/e2e/run cleanup
    16  exit "$testexit"