rpm-ostree/tests/check
Colin Walters 34b5a004a8 daemon: Add a sanitycheck(/bin/true) before we deploy a tree
This is a followup to https://github.com/projectatomic/rpm-ostree/pull/888
but more comprehensive; in the layering case, the sanitycheck runs
after all the `%posttrans` scripts, so we'll get a consistent error message
for the `rm -rf /` test.

We also do the sanitycheck for the "pure ostree" case, as well as cases
where we didn't actually layer packages (including `ex override remove` as
well as simply regenerating an initrd).

There's obviously a lot more we could do in a sanitycheck; as I say in the
comment it's tempting to consider trying to boot systemd (in a fully volatile
config), but for now let's do this. In the end of course the admin has rollback
too.

Closes: #892
Approved by: jlebon
2017-07-27 17:58:58 +00:00
..
jsonutil.c Switch to glib cleanup macros 2016-07-15 13:08:58 +00:00
postprocess.c postprocess: Handle f26 /etc/nsswitch.conf configuration 2017-03-16 18:39:38 +00:00
test-basic.sh lib: Add version macros and version checking function 2017-07-21 20:35:26 +00:00
test-ucontainer.sh daemon: Add a sanitycheck(/bin/true) before we deploy a tree 2017-07-27 17:58:58 +00:00
test-utils.c tests: transition to build_rpm 2017-06-29 16:16:54 +00:00