File tree Expand file tree Collapse file tree 1 file changed +21
-6
lines changed
tests/kola/ignition/kargs/basic Expand file tree Collapse file tree 1 file changed +21
-6
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,25 @@ set -xeuo pipefail
6
6
7
7
. $KOLA_EXT_DATA /commonlib.sh
8
8
9
- if ! grep foobar /proc/cmdline; then
10
- fatal " missing foobar in kernel cmdline"
11
- fi
12
- if grep mitigations /proc/cmdline; then
13
- fatal " found mitigations in kernel cmdline"
14
- fi
9
+ kargchecks () {
10
+ if ! grep foobar /proc/cmdline; then
11
+ fatal " missing foobar in kernel cmdline"
12
+ fi
13
+ if grep mitigations /proc/cmdline; then
14
+ fatal " found mitigations in kernel cmdline"
15
+ fi
16
+ }
17
+
18
+ case " ${AUTOPKGTEST_REBOOT_MARK:- } " in
19
+ " " )
20
+ kargchecks
21
+ # Now reboot the machine and verify the kernel argument persists
22
+ /tmp/autopkgtest-reboot nextboot
23
+ ;;
24
+ nextboot)
25
+ kargchecks
26
+ ;;
27
+ * ) fatal " unexpected mark: ${AUTOPKGTEST_REBOOT_MARK} " ;;
28
+ esac
29
+
15
30
ok " Ignition kargs"
You can’t perform that action at this time.
0 commit comments