Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests/installed: New installed, privileged tests using Fedora AH #807

Closed
wants to merge 8 commits into from

Conversation

cgwalters
Copy link
Member

Our container-driven tests can't e.g. test SELinux sanely, and
have to support being run as root and non-root too.

Use redhat-ci to provision a VM and run tests directly there. These are
installed tests too.

This could be shared more easily with e.g. rpm-ostree, but what I'm currently
working on is installed, privileged (potentially destructive, i.e. VM) tests
that will source this separately from the current `libtest.sh`. That does work
installed, but in practice is oriented around unit (uninstalled, unprivileged)
tests.
Our container-driven tests can't e.g. test SELinux sanely, and
have to support being run as root *and* non-root too.

Use redhat-ci to provision a VM and run tests directly there. These are
installed tests too.

Closes: ostreedev#806
assert_streq $(id -u) 0

PYTHON=
for PYTHON in /usr/bin/python3 /usr/bin/python; do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe use a different placeholder var here, otherwise the test -z below will never fail.

@jlebon
Copy link
Member

jlebon commented Apr 25, 2017

This is really nice!
@rh-atomic-bot r+ ede8c14

rh-atomic-bot pushed a commit that referenced this pull request Apr 25, 2017
Our container-driven tests can't e.g. test SELinux sanely, and
have to support being run as root *and* non-root too.

Use redhat-ci to provision a VM and run tests directly there. These are
installed tests too.

Closes: #806

Closes: #807
Approved by: jlebon
@rh-atomic-bot
Copy link

⌛ Testing commit ede8c14 with merge 654b0c4...

@rh-atomic-bot
Copy link

☀️ Test successful - status-atomicjenkins
Approved by: jlebon
Pushing 654b0c4 to master...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants