]> git.apps.os.sepia.ceph.com Git - teuthology.git/log
teuthology.git
3 years agoorch/run: add entire nose log file for unit-testing
Vallari Agrawal [Mon, 20 Jun 2022 17:20:01 +0000 (22:50 +0530)]
orch/run: add entire nose log file for unit-testing

Test run - https://pulpito.ceph.com/vallariag-2022-06-20_13:16:35-smoke-quincy-release-distro-default-smithi/

Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
3 years agoorch/run: use re.compile and add is_prev_detected_error check
Vallari Agrawal [Mon, 20 Jun 2022 13:10:35 +0000 (18:40 +0530)]
orch/run: use re.compile and add is_prev_detected_error check

Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
3 years agoorch/run: seek to EOF after each scan
Vallari Agrawal [Mon, 20 Jun 2022 09:23:15 +0000 (14:53 +0530)]
orch/run: seek to EOF after each scan

Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
3 years agoorch/run: Read logs line by line
Vallari Agrawal [Thu, 16 Jun 2022 11:17:33 +0000 (16:47 +0530)]
orch/run: Read logs line by line

And include test name in UnitTestError

Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
3 years agoorch/run: Scan teuthology log files for unit test errors
Vallari Agrawal [Sun, 12 Jun 2022 20:50:50 +0000 (02:20 +0530)]
orch/run: Scan teuthology log files for unit test errors

- Scan teuthology log files from bottom up
- Keep a flag to keep track of line-number till which logs were last scanned
  Do not scan above this flag index.
- Raise UnitTestError with error message found in log files

Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>