Skip to content

Commit

Permalink
psh: tools: fix reading current target from test runner
Browse files Browse the repository at this point in the history
JIRA: PD-77
  • Loading branch information
damianloew committed Feb 21, 2022
1 parent 8946f22 commit 9d14664
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions psh/tools/psh.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
import re
import pexpect


from trunner.config import CURRENT_TARGET, DEVICE_TARGETS
import trunner.config as config


EOL = r'(\r+)\n'
Expand Down Expand Up @@ -84,7 +83,8 @@ def assert_prompt_fail(pexpect_proc, msg='', timeout=-1):
def assert_exec(pexpect_proc, prog, expected='', msg=''):
''' Executes specified program and asserts that it's displayed correctly
with optional expected output and next prompt'''
if CURRENT_TARGET in DEVICE_TARGETS:

if config.CURRENT_TARGET in config.DEVICE_TARGETS:
exec_cmd = f'sysexec {prog}'
else:
exec_cmd = f'/bin/{prog}'
Expand Down

0 comments on commit 9d14664

Please sign in to comment.