summaryrefslogtreecommitdiff
path: root/tests/libtest.sh
diff options
context:
space:
mode:
authorPhilip Withnall <withnall@endlessm.com>2017-09-15 16:05:12 +0100
committerAtomic Bot <atomic-devel@projectatomic.io>2017-09-27 14:44:00 +0000
commit9546e6795e8778f00d6df5dfbd3905754b3de05b (patch)
tree2b1f1778297afeff91948de2b042945347db50ab /tests/libtest.sh
parentf923c2e1eaebe0c781f07d34ae1a03f94357bccd (diff)
downloadostree-9546e6795e8778f00d6df5dfbd3905754b3de05b.tar.gz
create-usb: Add a create-usb command to complement OstreeRepoFinderMount
This can be used to put OSTree repositories on USB sticks in a format recognised by OstreeRepoFinderMount. Signed-off-by: Philip Withnall <withnall@endlessm.com> Closes: #1182 Approved by: cgwalters
Diffstat (limited to 'tests/libtest.sh')
-rwxr-xr-xtests/libtest.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/libtest.sh b/tests/libtest.sh
index ed6cc43d..7ebe4449 100755
--- a/tests/libtest.sh
+++ b/tests/libtest.sh
@@ -603,6 +603,12 @@ skip_without_fuse () {
[ -e /etc/mtab ] || skip "no /etc/mtab"
}
+skip_without_experimental () {
+ if ! ostree --version | grep -q -e '- experimental'; then
+ skip "No experimental API is compiled in"
+ fi
+}
+
has_gpgme () {
${CMD_PREFIX} ostree --version > version.txt
assert_file_has_content version.txt '- gpgme'