diff --git a/lldb/test/API/commands/settings/TestSettings.py b/lldb/test/API/commands/settings/TestSettings.py index 6b89ff76a2900..2a7c852fc916d 100644 --- a/lldb/test/API/commands/settings/TestSettings.py +++ b/lldb/test/API/commands/settings/TestSettings.py @@ -1018,8 +1018,9 @@ def test_settings_api(self): # Test OptionValueFileSpec and OptionValueFileSpecList setting_path = "target.debug-file-search-paths" - setting_value = ["/tmp" "/tmp2"] - self.runCmd("settings set %s %s" % (setting_path, " ".join(setting_value))) + path1 = os.path.join(self.getSourceDir(), "tmp") + path2 = os.path.join(self.getSourceDir(), "tmp2") + self.runCmd("settings set %s '%s' '%s'" % (setting_path, path1, path2)) settings_json = self.get_setting_json(setting_path) self.assertEqual(settings_json, setting_value)