-
Notifications
You must be signed in to change notification settings - Fork 343
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When user sets only one of the status server values (uri, listen) Then the avocado will stop working because it will listen on different uri than the messages will be sent. This change will synchronize these values if the user sets only one of them. Reference: #5740 Signed-off-by: Jan Richter <[email protected]>
- Loading branch information
Showing
2 changed files
with
41 additions
and
3 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
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.core.exit_codes import AVOCADO_ALL_OK | ||
from avocado.utils import process | ||
from selftests.utils import AVOCADO, TestCaseTmpDir | ||
|
||
|
||
class NrunnerTest(TestCaseTmpDir): | ||
def test_status_server_uri(self): | ||
result = process.run( | ||
f"{AVOCADO} run " | ||
f"--job-results-dir {self.tmpdir.name} " | ||
f"--disable-sysinfo --status-server-disable-auto " | ||
f"--status-server-uri 127.0.0.1:9999 " | ||
f"examples/tests/true", | ||
) | ||
self.assertIn("PASS 1 ", result.stdout_text) | ||
self.assertEqual(result.exit_status, AVOCADO_ALL_OK) |