diff options
author | Colin Walters <walters@verbum.org> | 2017-09-26 12:41:07 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2017-09-27 13:13:14 +0000 |
commit | 5963d5a2a95b0aea7d306fc4ed5967b3e6ac4d83 (patch) | |
tree | 8494d98a6e732d5f0962b27776327174271430df /tests/basic-test.sh | |
parent | 25a7c4bd4e8aeaf68689fcd2ddc2f907f2f76f1f (diff) | |
download | ostree-5963d5a2a95b0aea7d306fc4ed5967b3e6ac4d83.tar.gz |
tests,ci: Move "test-basic" (bare mode) to installed test
Our CI uses default Docker, which has SELinux labeling but is rather
evil in returning `EOPNOTSUPP` to any attempts to set `security.selinux`,
even if to the same value.
The previous fire 🔥 for this was: https://github.com/ostreedev/ostree/pull/759
The `bare` repo mode really only makes sense as uid 0, so our installed
test framework is a good match for this. However, the unit tests *do*
work in a privileged container even as non-root, and *also* should
work on SELinux-disabled systems. So let's teach the test framework
how to skip in those situations.
I tested this both in a priv container (my default builder) and an unpriv
container (like our CI).
At the same time, start executing the `test-basic.sh` from an installed test,
so we get better coverage than before.
This is just the start - all of the sysroot tests really need the
same treatment.
Closes: #1217
Approved by: jlebon
Diffstat (limited to 'tests/basic-test.sh')
-rw-r--r-- | tests/basic-test.sh | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/basic-test.sh b/tests/basic-test.sh index 742b1ada..482f6979 100644 --- a/tests/basic-test.sh +++ b/tests/basic-test.sh @@ -19,11 +19,7 @@ set -euo pipefail -echo "1..$((73 + ${extra_basic_tests:-0}))" - -$CMD_PREFIX ostree --version > version.yaml -python -c 'import yaml; yaml.safe_load(open("version.yaml"))' -echo "ok yaml version" +echo "1..$((72 + ${extra_basic_tests:-0}))" CHECKOUT_U_ARG="" CHECKOUT_H_ARGS="-H" |