Skip to content

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

Closed
cgwalters wants to merge 8 commits intoostreedev:masterfrom
cgwalters:host-installed-tests
Closed

tests/installed: New installed, privileged tests using Fedora AH#807
cgwalters wants to merge 8 commits intoostreedev:masterfrom
cgwalters:host-installed-tests

Conversation

@cgwalters
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

⌛ Testing commit ede8c14 with merge 654b0c4...

@rh-atomic-bot
Copy link
Copy Markdown

☀️ 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