aboutsummaryrefslogtreecommitdiff
path: root/packages/Python/lldbsuite/test/functionalities/command_script_immediate_output/TestCommandScriptImmediateOutput.py
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2018-07-28 11:09:23 +0000
committerDimitry Andric <dim@FreeBSD.org>2018-07-28 11:09:23 +0000
commitf73363f1dd94996356cefbf24388f561891acf0b (patch)
treee3c31248bdb36eaec5fd833490d4278162dba2a0 /packages/Python/lldbsuite/test/functionalities/command_script_immediate_output/TestCommandScriptImmediateOutput.py
parent160ee69dd7ae18978f4068116777639ea98dc951 (diff)
Notes
Diffstat (limited to 'packages/Python/lldbsuite/test/functionalities/command_script_immediate_output/TestCommandScriptImmediateOutput.py')
-rw-r--r--packages/Python/lldbsuite/test/functionalities/command_script_immediate_output/TestCommandScriptImmediateOutput.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/packages/Python/lldbsuite/test/functionalities/command_script_immediate_output/TestCommandScriptImmediateOutput.py b/packages/Python/lldbsuite/test/functionalities/command_script_immediate_output/TestCommandScriptImmediateOutput.py
index 975ad32689b2..c6ad75f014ee 100644
--- a/packages/Python/lldbsuite/test/functionalities/command_script_immediate_output/TestCommandScriptImmediateOutput.py
+++ b/packages/Python/lldbsuite/test/functionalities/command_script_immediate_output/TestCommandScriptImmediateOutput.py
@@ -32,7 +32,7 @@ class CommandScriptImmediateOutputTestCase (PExpectTest):
"""Test that LLDB correctly allows scripted commands to set immediate output to the console."""
self.launch(timeout=10)
- script = os.path.join(os.getcwd(), 'custom_command.py')
+ script = os.path.join(self.getSourceDir(), 'custom_command.py')
prompt = "\(lldb\) "
self.sendline('command script import %s' % script, patterns=[prompt])
@@ -54,12 +54,12 @@ class CommandScriptImmediateOutputTestCase (PExpectTest):
"""Test that LLDB correctly allows scripted commands to set immediate output to a file."""
self.launch(timeout=10)
- test_files = {os.path.join(os.getcwd(), 'read.txt'): 'r',
- os.path.join(os.getcwd(), 'write.txt'): 'w',
- os.path.join(os.getcwd(), 'append.txt'): 'a',
- os.path.join(os.getcwd(), 'write_plus.txt'): 'w+',
- os.path.join(os.getcwd(), 'read_plus.txt'): 'r+',
- os.path.join(os.getcwd(), 'append_plus.txt'): 'a+'}
+ test_files = {self.getBuildArtifact('read.txt'): 'r',
+ self.getBuildArtifact('write.txt'): 'w',
+ self.getBuildArtifact('append.txt'): 'a',
+ self.getBuildArtifact('write_plus.txt'): 'w+',
+ self.getBuildArtifact('read_plus.txt'): 'r+',
+ self.getBuildArtifact('append_plus.txt'): 'a+'}
starter_string = 'Starter Garbage\n'
write_string = 'writing to file with mode: '
@@ -68,7 +68,7 @@ class CommandScriptImmediateOutputTestCase (PExpectTest):
with open(path, 'w+') as init:
init.write(starter_string)
- script = os.path.join(os.getcwd(), 'custom_command.py')
+ script = os.path.join(self.getSourceDir(), 'custom_command.py')
prompt = "\(lldb\) "
self.sendline('command script import %s' % script, patterns=[prompt])