forked from OSchip/llvm-project
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:
parent
bfcbc85fea
commit
3343f04bf8
|
|
@ -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.
|
||||
#
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue