Allow RHE7 /run contents for build fs test
On RHEL7 workers /run contents for build fs test are different
from all thore variants we are checking, which makes test fail
on RHEL7 workers. Adding correct contents to the list of checked
contents should help
@@ -101,6 +101,31 @@ secrets
/run/rhsm:
/run/secrets:
+`
+ lsRSlashRunRhel7 = `
+/run:
+lock
+rhsm
+secrets
+
+/run/lock:
+
+/run/rhsm:
+
+/run/secrets:
+rhsm
+
+/run/secrets/rhsm:
+ca
+logging.conf
+rhsm.conf
+syspurpose
+
+/run/secrets/rhsm/ca:
+redhat-uep.pem
+
+/run/secrets/rhsm/syspurpose:
+valid_fields.json
`
)
@@ -132,7 +157,11 @@ secrets
logs, err := br.LogsNoTimestamp()
o.Expect(err).NotTo(o.HaveOccurred())
hasRightListing := false
- if strings.Contains(logs, lsRSlashRun) || strings.Contains(logs, lsRSlashRunFIPS) || strings.Contains(logs, lsRSlashRunOKD) {
+ if strings.Contains(logs, lsRSlashRun) ||
+ strings.Contains(logs, lsRSlashRunFIPS) ||
+ strings.Contains(logs, lsRSlashRunOKD) ||
+ strings.Contains(logs, lsRSlashRunRhel7) {
+
hasRightListing = true
}
o.Expect(hasRightListing).To(o.BeTrue())
