From 8f24e0826ac30fe7538bd60a000d9e43500749eb Mon Sep 17 00:00:00 2001 From: Huijing Hei Date: Tue, 12 Jul 2022 16:27:56 +0800 Subject: [PATCH] Add test to verify `ostree admin kargs edit-in-place` working --- tests/kolainst/destructive/kargs-edit-in-place.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 tests/kolainst/destructive/kargs-edit-in-place.sh diff --git a/tests/kolainst/destructive/kargs-edit-in-place.sh b/tests/kolainst/destructive/kargs-edit-in-place.sh new file mode 100755 index 00000000..6380ff33 --- /dev/null +++ b/tests/kolainst/destructive/kargs-edit-in-place.sh @@ -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`"