This repository has been archived by the owner on Jun 28, 2024. It is now read-only.
Provide ability to skip a test based on the runtime being used #59
Labels
stale
Issue or PR was not updated in a timely fashion
Currently, some of the tests make use of
Skip()
(ginkgo). At some future point they will also be usingskip
(bats) too. These calls skip the tests unconditionally. However, we are likely to need ways to skip a test but only for particular runtime(s) [1]:Something like:
We should also support
any
:... and maybe a regex like:
We'll need
kata.Runtime(name string)
to check to see which runtime thekata-runtime
symlink actually points to. If the link name ends in-cc
[2], it's a Clear Containers-based runtime, elserunv
.We can then compare the fully resolved value of the
Runtime
path with the runtime type the test is requesting be skipped and returntrue
/false
as appropriate.[1] - runtime names should be specified using the same syntax as used for the build. Namely
cc
orrunv
(orall
). See kata-containers/runtime#16.[2] - Or, run the runtime and check for a known string such as:
The text was updated successfully, but these errors were encountered: