PTL tracejob_match function doesn't honor the max_attempts value passed in the parameter

Description

PTL tracejob_match function doesn't take the max_attempts value passed in the parameter instead it takes the the default max_attempt i.e 1

Test script code snippet:
log_msg = "Job is a top job and will run at"
rv=self.server.tracejob_match(msg=log_msg, id=jid2, max_attempts=10)

Logs:
2017-08-29 00:09:54,019 INFOCLI2 pbspro-master: /opt/pbs/bin/tracejob 38.pbspro-master
2017-08-29 00:09:54,033 INFO pbspro-master log match: searching for "Job is a top job and will run at" - No match
None
2017-08-29 00:09:55,037 INFO FAILED

2017-08-29 00:09:55,037 INFO ======================================================
2017-08-29 00:09:55,037 INFO Entered TestBackfillAroundStrictOrdering_ext tearDown
2017-08-29 00:09:55,037 INFO ======================================================
2017-08-29 00:09:55,037 INFO =======================================================
2017-08-29 00:09:55,037 INFO Completed TestBackfillAroundStrictOrdering_ext tearDown
2017-08-29 00:09:55,037 INFO =======================================================
2017-08-29 00:09:55,040 INFO
2017-08-29 00:09:55,040 INFO ======================================================================
2017-08-29 00:09:55,040 INFO FAILED: test_t7 (tests.functional.pbs_backfill_around_strictordering_ext.TestBackfillAroundStrictOrdering_ext)

2017-08-29 00:09:55,040 INFO __m_oo_m__
2017-08-29 00:09:55,040 INFO Traceback (most recent call last):
File "/tmp/ptl/tests/functional/pbs_backfill_around_strictordering_ext.py", line 293, in test_t7
self.assertTrue(rv)
AssertionError: None is not true

Acceptance Criteria

None

Status

Assignee

zulekha mahalty

Reporter

zulekha mahalty

Severity

None

OS

None

Start Date

None

Pull Request URL

Story Points

1

Components

Affects versions

Priority

Low
Configure