rpm-ostree/tests/check
Colin Walters 9c004e1833 Change unpacking to use a single ostree txn
Right now each ostree txn incurs a `syncfs()`; see
https://github.com/ostreedev/ostree/issues/1184
And before this patch, we were doing a txn per package import.

We can really do better in libostree - we'll fix that, but in the short term
let's use a bigger txn for every package. However, the obvious change here of
simply hoisting up the txn is that on failure for imports, we'd discard all
downloaded packages.  We fix that by changing the auto txn API to have
a `commit_on_failure` boolean, and use it in cases where we're doing
imports.

This is prep work for jigdo, where we'll be using the import path all the time.
My bigger plan is to do multithreaded imports.

Closes: #1116
Approved by: jlebon
2017-11-29 16:48:19 +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 tests: Skip running introspection tests if built with ASAN 2017-09-24 13:32:00 +00:00
test-kargs.c tests/check: Add unit tests for kargs options 2017-11-06 18:49:36 +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 Change unpacking to use a single ostree txn 2017-11-29 16:48:19 +00:00