1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-05 06:46:36 +01:00

integration tests: Allow literal '$' in expected contents

Escape a literal $ with $$.
This commit is contained in:
Zane Bitter
2025-09-23 23:11:15 +12:00
parent 310297a9ca
commit 32fe75446e

View File

@@ -397,6 +397,9 @@ func archiveFileNames(isoPath string) (string, string, error) {
func expand(ts *testscript.TestScript, s []byte) string {
return os.Expand(string(s), func(key string) string {
if key == "$" {
return "$"
}
return ts.Getenv(key)
})
}