The expected term-width output string should be put within a list, not as a list of characters.

Also uncomment the cleanup of "stdout.txt" file as part of the class cleanup routine even though
test_set_output_path() is failing right now.

llvm-svn: 116023
This commit is contained in:
Johnny Chen 2010-10-08 00:47:30 +00:00
parent 0bb2f9afa9
commit 138532af06
1 changed files with 3 additions and 3 deletions

View File

@ -13,8 +13,8 @@ class SettingsCommandTestCase(TestBase):
@classmethod @classmethod
def classCleanup(cls): def classCleanup(cls):
system(["/bin/sh", "-c", "rm output.txt"]) system(["/bin/sh", "-c", "rm -f output.txt"])
#system(["/bin/sh", "-c", "rm stdout.txt"]) system(["/bin/sh", "-c", "rm -f stdout.txt"])
def test_set_prompt(self): def test_set_prompt(self):
"""Test that 'set prompt' actually changes the prompt.""" """Test that 'set prompt' actually changes the prompt."""
@ -45,7 +45,7 @@ class SettingsCommandTestCase(TestBase):
# The overall display should also reflect the new setting. # The overall display should also reflect the new setting.
self.expect("settings show", self.expect("settings show",
substrs = "term-width (int) = '70'") substrs = ["term-width (int) = '70'"])
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
def test_with_dsym(self): def test_with_dsym(self):