From e32a68c5c02e2cbc3a924f40d4987faa05dbcc89 Mon Sep 17 00:00:00 2001 From: Thomas Thomassen Date: Mon, 13 Feb 2023 11:38:56 +0100 Subject: [PATCH] Fix config variable expansion when key/value is missing or not a string. --- src/testup/app.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/testup/app.rb b/src/testup/app.rb index 78f13b8..b6f7302 100644 --- a/src/testup/app.rb +++ b/src/testup/app.rb @@ -48,6 +48,8 @@ def self.read_config_file(ci_config_path) # Expand config variables. ['Path', 'Output', 'LogPath', 'SavedRunsPath'].each { |key| value = config[key] + next unless value.is_a?(String) + value.gsub!('%CONFIG_DIR%', config_dir) } config