From 5cf109d2e588dfeaaed4e6b78db7def66ecf5e1d Mon Sep 17 00:00:00 2001 From: zhongjun Date: Fri, 29 Sep 2017 09:12:49 +0800 Subject: Add more test function and case in test_utils.py Add more test functions and test case in test_utils.py, test_daisy_server.py and test_environment.py. Change-Id: I7e4ea6993205e1d2f7cc8202820a3ada99613910 Signed-off-by: zhongjun --- tests/data/common/sim_stderr_file | 0 tests/data/common/sim_stdout_file | 1 + tests/data/common/ssh_stream_data1.txt | 3 +++ tests/data/common/ssh_stream_data2.txt | 3 +++ tests/data/common/ssh_stream_data3.txt | 3 +++ 5 files changed, 10 insertions(+) create mode 100644 tests/data/common/sim_stderr_file create mode 100644 tests/data/common/sim_stdout_file create mode 100644 tests/data/common/ssh_stream_data1.txt create mode 100644 tests/data/common/ssh_stream_data2.txt create mode 100644 tests/data/common/ssh_stream_data3.txt (limited to 'tests/data/common') diff --git a/tests/data/common/sim_stderr_file b/tests/data/common/sim_stderr_file new file mode 100644 index 00000000..e69de29b diff --git a/tests/data/common/sim_stdout_file b/tests/data/common/sim_stdout_file new file mode 100644 index 00000000..e1a1a8d2 --- /dev/null +++ b/tests/data/common/sim_stdout_file @@ -0,0 +1 @@ +stdout file data \ No newline at end of file diff --git a/tests/data/common/ssh_stream_data1.txt b/tests/data/common/ssh_stream_data1.txt new file mode 100644 index 00000000..0d9da1de --- /dev/null +++ b/tests/data/common/ssh_stream_data1.txt @@ -0,0 +1,3 @@ +test_ssh_cmd1 +test_ssh_cmd2 +test_ssh_cmd3 diff --git a/tests/data/common/ssh_stream_data2.txt b/tests/data/common/ssh_stream_data2.txt new file mode 100644 index 00000000..00ee55c3 --- /dev/null +++ b/tests/data/common/ssh_stream_data2.txt @@ -0,0 +1,3 @@ +test_ssh_cmd1 +test_ssh_cmd2 +test_ssh_cmd3 \ No newline at end of file diff --git a/tests/data/common/ssh_stream_data3.txt b/tests/data/common/ssh_stream_data3.txt new file mode 100644 index 00000000..289d65cb --- /dev/null +++ b/tests/data/common/ssh_stream_data3.txt @@ -0,0 +1,3 @@ +test_ssh_cmd1 +test_ssh_cmd2 +test_ssh_cmd3 option1 \ No newline at end of file -- cgit 1.2.3-korg