Add a little helper function SETTING_MSG(setting) to be used from TestSettings.test_set_output_path().

llvm-svn: 116847
This commit is contained in:
Johnny Chen 2010-10-19 19:11:38 +00:00
parent bfcbc85fea
commit 3343f04bf8
2 changed files with 7 additions and 0 deletions

View File

@ -179,6 +179,12 @@ def CMD_MSG(str, exe):
else:
return "'%s' compares successfully" % str
#
# And a generic "Value of setting '%s' is correct" message generator.
#
def SETTING_MSG(setting):
return "Value of setting '%s' is correct" % setting
#
# Returns an env variable array from the os.environ map object.
#

View File

@ -115,6 +115,7 @@ class SettingsCommandTestCase(TestBase):
# Set the output-path and verify it is set.
self.runCmd("settings set target.process.output-path 'stdout.txt'")
self.expect("settings show target.process.output-path",
SETTING_MSG("target.process.output-path"),
startstr = "target.process.output-path (string) = 'stdout.txt'")
self.runCmd("run", RUN_SUCCEEDED)