Skip to content

Commit

Permalink
tests: ignition.kargs.basic: rework test
Browse files Browse the repository at this point in the history
- Add description
- Convert Ignition to Butane
- Use ok/fatal from commonlib.sh
  • Loading branch information
dustymabe committed Feb 2, 2022
1 parent 486baae commit 65e8e55
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 17 deletions.
7 changes: 7 additions & 0 deletions tests/kola/ignition/kargs/basic/config.bu
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
variant: fcos
version: 1.4.0
kernel_arguments:
should_exist:
- foobar
should_not_exist:
- mitigations=auto,nosmt
9 changes: 0 additions & 9 deletions tests/kola/ignition/kargs/basic/config.ign

This file was deleted.

1 change: 1 addition & 0 deletions tests/kola/ignition/kargs/basic/data/commonlib.sh
10 changes: 2 additions & 8 deletions tests/kola/ignition/kargs/basic/test.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
#!/bin/bash
set -xeuo pipefail
# This test runs on all platforms and verifies Ignition kernel argument setting.

ok() {
echo "ok" "$@"
}

fatal() {
echo "$@" >&2
exit 1
}
. $KOLA_EXT_DATA/commonlib.sh

if ! grep foobar /proc/cmdline; then
fatal "missing foobar in kernel cmdline"
Expand Down

0 comments on commit 65e8e55

Please sign in to comment.