blob: c0232ddffa7607944702df0e628db94f05c641e0 [file] [log] [blame]
Neels Hofmeyr3531a192017-03-28 14:30:28 +02001- non-existing suite dir
2--- -: ERR: RuntimeError: Suite not found: 'does_not_exist' in ./suite_test
3- no suite.conf
4cnf empty_dir: DBG: reading suite.conf [empty_dirempty_dir]
5--- ./suite_test/empty_dir/suite.conf: ERR: FileNotFoundError: [Errno 2] No such file or directory: './suite_test/empty_dir/suite.conf' [empty_dir↪./suite_test/empty_dir/suite.conf]
6- valid suite dir
7cnf test_suite: DBG: reading suite.conf [test_suitetest_suite]
8defaults:
9 timeout: 60s
10resources:
11 bts:
12 - times: '1'
13 modem:
14 - times: '2'
15 nitb_iface:
16 - times: '1'
17
18- run hello world test
19tst test_suite: reserving resources...
20--- (want='nitb_iface'): DBG: Looking for 1 x nitb_iface , candidates: 3
21--- (want='modem'): DBG: Looking for 2 x modem , candidates: 16
22--- (want='bts'): DBG: Looking for 1 x bts , candidates: 3
23tst hello_world.py: START [test_suitehello_world.py]
24tst hello_world.py:3: hello world [test_suitehello_world.py:3]
25tst hello_world.py:4: I am 'test_suite' / 'hello_world.py:4' [test_suitehello_world.py:4]
26tst hello_world.py:5: one [test_suitehello_world.py:5]
27tst hello_world.py:5: two [test_suitehello_world.py:5]
28tst hello_world.py:5: three [test_suitehello_world.py:5]
29tst hello_world.py: PASS [test_suitehello_world.py]
30pass: all 1 tests passed.
31
32- a test with an error
33tst test_error.py: START [test_suitetest_error.py] [suite.py:96]
34tst test_error.py:3: I am 'test_suite' / 'test_error.py:3' [test_suitetest_error.py:3] [test_error.py:3]
35tst test_error.py:5: FAIL [test_suitetest_error.py:5] [suite.py:108]
36tst test_error.py:5: ERR: AssertionError: [test_suitetest_error.py:5] [test_error.py:5: assert False]
37FAIL: 1 of 1 tests failed:
38 test_error.py
39
40- graceful exit.