Add test to verify ostree admin kargs edit-in-place working

This commit is contained in:
Huijing Hei 2022-07-12 16:27:56 +08:00
parent 7b7b6d741b
commit 8f24e0826a

View File

@ -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`"