This repository was archived by the owner on Feb 1, 2026. It is now read-only.
tests/e2e: give more controls to tests_runner.sh#265
Open
wainersm wants to merge 1 commit intoconfidential-containers:mainfrom
Open
tests/e2e: give more controls to tests_runner.sh#265wainersm wants to merge 1 commit intoconfidential-containers:mainfrom
wainersm wants to merge 1 commit intoconfidential-containers:mainfrom
Conversation
This makes the tests/e2e/tests_runner.sh more flexible so to improve the
experience of debugging an error on tests. The new controls introduced
are:
- Exporting `CI=false` will disable the teardown of most Kata's tests. The
clean up and revert routines won't execute, resources like pods are preserved.
- You can filter only the tests you want to run by exporting the
FILTER_TESTS variable. For example:
$ export FILTER_TESTS='.*Test can pull an unencrypted image inside the guest'
- Exporting KATA_TESTS_REPO_DIR it won't attempt to clone the tests
repo. Notice that you should export GOPATH properly. Example:
$ sudo -E PATH="$PATH" GOPATH=$PWD \
KATA_TESTS_REPO_DIR=$PWD/src/github.com/kata-containers/tests \
bash -c "./tests_runner.sh -r kata-qemu"
Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Member
Author
|
This could have helped on debugging the tests for #263 Anyway, marking as do-not-merge to avoid putting more risks on the 0.8.0 release. If you wish to use this meanwhile, pick and put in your branch. |
Member
|
@wainersm - now we are decoupled from kata-containers tests in the operator I think this (or at least elements of it) isn't needed anymore? |
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This makes the tests/e2e/tests_runner.sh more flexible so to improve the experience of debugging an error on tests. The new controls introduced are:
CI=falsewill disable the teardown of most Kata's tests. The clean up and revert routines won't execute, resources like pods are preserved.