Skip to content

Commit 3c52047

Browse files
committed
add further scrample test
1 parent bce4cb5 commit 3c52047

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

qnx_qemu/test/itf/test_scrample.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,22 @@
1818

1919

2020
def test_scrample_app_is_deployed(target_fixture):
21-
user = "qnxuser"
22-
with target_fixture.sut.ssh(username=user) as ssh:
21+
with target_fixture.sut.ssh() as ssh:
2322
exit_code, stdout, stderr = execute_command_output(
2423
ssh, "test -f scrample"
2524
)
2625
assert exit_code == 0, "SSH command failed"
2726

2827

29-
# def test_scrample_app_is_running(target_fixture):
30-
# user = "qnxuser"
31-
# with target_fixture.sut.ssh(username=user) as ssh:
32-
# exit_code, stdout, stderr = execute_command_output(
33-
# # ssh, "./scrample -n 5 -t 100 -m recv & ./scrample -n 20 -t 100 -m send"
34-
# # ssh, "./scrample -n 20 -t 100 -m send"
35-
# ssh, "./scrample -n 10 -t 100 -m send",
36-
# timeout = 30, max_exec_time = 180,
37-
# logger_in = logger, verbose = True,
38-
# )
39-
# assert exit_code == 0, "SSH command failed"
28+
def test_scrample_app_is_running(target_fixture):
29+
with target_fixture.sut.ssh() as ssh:
30+
exit_code, stdout, stderr = execute_command_output(
31+
ssh, "./scrample -n 10 -t 100 -m send & ./scrample -n 5 -t 100 -m recv",
32+
timeout = 30, max_exec_time = 180,
33+
logger_in = logger, verbose = True,
34+
)
35+
36+
logger.info (stdout)
37+
logger.info (stderr)
38+
39+
assert exit_code == 0, "SSH command failed"

0 commit comments

Comments
 (0)