Skip to content

Commit

Permalink
tests/kola: move initrd tests into a subdirectory
Browse files Browse the repository at this point in the history
Clean up comments a bit and switch to YAML metadata.
  • Loading branch information
bgilbert authored and HuijingHei committed Oct 10, 2023
1 parent 5e6f2c6 commit d9e3cc4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions tests/kola/files/initrd/data/commonlib.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
#!/bin/bash
# kola: { "exclusive": false }
## kola:
## exclusive: false
#
# It's easy for dracut modules to accidentally ship scripts without +x set.
# Check for those.

set -xeuo pipefail

. $KOLA_EXT_DATA/commonlib.sh

# It's easy for dracut modules to accidentally ship scripts without +x set
tmpd=$(mktemp -d)
( cd "${tmpd}" && lsinitrd --unpack /boot/ostree/*/init* )
if find "${tmpd}/usr/"{bin,sbin,libexec} ! -perm -0111 | grep -v clevis-luks-common-functions; then
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#!/bin/bash
# kola: { "exclusive": false }
## kola:
## exclusive: false

# This test runs on both, FCOS&RHCOS. The initrd includes specific files which,
# if omitted from the image will cause some failures with certain ingnition
# configurations. This test doesnt assert the functionality of any files, it
# This test runs on both FCOS & RHCOS. The initrd includes specific files which,
# if omitted from the image, will cause some failures with certain Ignition
# configs. This test doesn't assert the functionality of any files, it
# simply gives a high level check to see if the files are available.
# See https://github.com/coreos/fedora-coreos-config/issues/1775

Expand Down

0 comments on commit d9e3cc4

Please sign in to comment.