Skip to content

Commit 5286511

Browse files
da-viperlabath
andauthored
[lldb][NFC] use platform independent path separator in testSettings.py. (#132392)
The build bot was failing when running remote test from windows to linux. From #131683 --------- Signed-off-by: Ebuka Ezike <[email protected]> Co-authored-by: Pavel Labath <[email protected]>
1 parent 1416566 commit 5286511

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lldb/test/API/commands/settings/TestSettings.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,8 +1018,9 @@ def test_settings_api(self):
10181018

10191019
# Test OptionValueFileSpec and OptionValueFileSpecList
10201020
setting_path = "target.debug-file-search-paths"
1021-
setting_value = ["/tmp" "/tmp2"]
1022-
self.runCmd("settings set %s %s" % (setting_path, " ".join(setting_value)))
1021+
path1 = os.path.join(self.getSourceDir(), "tmp")
1022+
path2 = os.path.join(self.getSourceDir(), "tmp2")
1023+
self.runCmd("settings set %s '%s' '%s'" % (setting_path, path1, path2))
10231024
settings_json = self.get_setting_json(setting_path)
10241025
self.assertEqual(settings_json, setting_value)
10251026

0 commit comments

Comments
 (0)