Add test to verify `ostree admin kargs edit-in-place` working
authorHuijing Hei <hhei@redhat.com>
Tue, 12 Jul 2022 08:27:56 +0000 (16:27 +0800)
committerHuijing Hei <hhei@redhat.com>
Tue, 12 Jul 2022 12:56:18 +0000 (20:56 +0800)
tests/kolainst/destructive/kargs-edit-in-place.sh [new file with mode: 0755]

diff --git a/tests/kolainst/destructive/kargs-edit-in-place.sh b/tests/kolainst/destructive/kargs-edit-in-place.sh
new file mode 100755 (executable)
index 0000000..6380ff3
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+# Verify "ostree admin kargs edit-in-place" works
+
+set -xeuo pipefail
+
+. ${KOLA_EXT_DATA}/libinsttest.sh
+
+sudo ostree admin kargs edit-in-place --append-if-missing=testarg
+assert_file_has_content /boot/loader/entries/ostree-* testarg
+
+echo "ok test `kargs edit-in-place --append-if-missing`"