forked from avocado-framework/avocado
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avocado-instrumented default timeout removal
This will remove unsystematic timeout inside avocado-instrumented runner. This timeout has been set to 24 hours and users haven't had a way how to change it. Because we solved problems with `task.timeout.running` in avocado-framework#5383 and `job-timeout` in avocado-framework#5295 this default timeout is not needed anymore. After this change, the users will have more power over timeouts and will be able to run instrumented tests longer than 24 hours. Reference: avocado-framework#5394 Signed-off-by: Jan Richter <jarichte@redhat.com>
- Loading branch information
Showing
2 changed files
with
18 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
selftests/functional/plugin/runners/avocado_instrumented.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from avocado import Test | ||
from avocado.utils import process | ||
from selftests.utils import AVOCADO, TestCaseTmpDir | ||
|
||
|
||
class AvocadoInstrumentedRunnerTest(TestCaseTmpDir, Test): | ||
def test_timeout(self): | ||
cmd_line = ( | ||
f"{AVOCADO} run --job-results-dir {self.tmpdir.name} " | ||
f"-- examples/tests/timeouttest.py " | ||
) | ||
result = process.run(cmd_line, ignore_status=True) | ||
self.assertIn( | ||
"examples/tests/timeouttest.py:TimeoutTest.test: INTERRUPTED: timeout", | ||
result.stdout_text, | ||
) |