mirror of
https://github.com/openshift/installer.git
synced 2026-02-05 15:47:14 +01:00
integration tests: Allow literal '$' in expected contents
Escape a literal $ with $$.
This commit is contained in:
@@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user