Jobs with -W interactive=true option in PTL not working

Description

-->Jobs with -W interactive=true option in PTL not working

-->Below is the code and logs snippet
Code Snippet:
j = Job(TEST_USER, attrs=
{ATTR_W: 'interactive=true'}

)
j.interactive_script = [('export PATH=$PATH:/opt/pbs/bin', '.*')]
jid = self.server.submit(j)

Logs:
2017-09-22 04:33:36,260 INFOCLI pbspro-master: sudo -H -u pbsuser /opt/pbs/bin/qsub -W interactive=true – /bin/sleep 100
2017-09-22 04:33:36,272 INFO submit to pbspro-master as pbsuser: job OrderedDict([('Additional_Attributes', 'interactive=true')])
2017-09-22 04:33:36,278 INFO ERROR

2017-09-22 04:33:36,278 INFO =========================================
2017-09-22 04:33:36,278 INFO Entered TestInteractiveJobs_ext tearDown
2017-09-22 04:33:36,278 INFO =========================================
2017-09-22 04:33:36,278 INFO ==========================================
2017-09-22 04:33:36,278 INFO Completed TestInteractiveJobs_ext tearDown
2017-09-22 04:33:36,278 INFO ==========================================
2017-09-22 04:33:36,281 INFO
2017-09-22 04:33:36,281 INFO ======================================================================
2017-09-22 04:33:36,281 INFO ERROR: test_t5 (tests.functional.pbs_interactivejob_ext.TestInteractiveJobs_ext)

2017-09-22 04:33:36,281 INFO __m_oo_m__
2017-09-22 04:33:36,281 INFO Traceback (most recent call last):
File "/tmp/ptl/lib/python2.7/site-packages/ptl/utils/pbs_testsuite.py", line 162, in wrapper
function(self, *args, **kwargs)
File "/tmp/ptl/tests/functional/pbs_interactivejob_ext.py", line 162, in test_t5
jid = self.server.submit(j)
File "/tmp/ptl/lib/python2.7/site-packages/ptl/lib/pbs_testlib.py", line 5881, in submit
post=self._disconnect, conn=c)
PbsSubmitError: rc=1, rv=None, msg=['qsub:\tstandard input and output must be a terminal for', '\tinteractive job submission']

Acceptance Criteria

None

Status

Assignee

Unassigned

Reporter

zulekha mahalty

Severity

None

OS

None

Start Date

None

Pull Request URL

None

Story Points

1

Components

Affects versions

Priority

Low
Configure