Last active
January 18, 2016 17:14
-
-
Save apahim/eeedb743f4e2f2b4916f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| [apahim@hurricane ~]$ cat test.py | |
| #!/usr/bin/python | |
| from avocado import Test | |
| from avocado import main | |
| from test2 import * | |
| class BasicTestSuite(SuperTest): | |
| """ | |
| :avocado: enable | |
| """ | |
| def test1(self): | |
| self.xxx() | |
| self.assertTrue(True) | |
| if __name__ == '__main__': | |
| main() | |
| [apahim@hurricane ~]$ cat test2.py | |
| #!/usr/bin/python | |
| from avocado import Test | |
| class SuperTest(Test): | |
| def xxx(self): | |
| print "ahoj" | |
| [apahim@hurricane ~]$ avocado run ./test.py | |
| JOB ID : 56f1f29987d63df2ca4a63edef9a96e07cebb367 | |
| JOB LOG : /home/apahim/avocado/job-results/job-2016-01-18T15.12-56f1f29/job.log | |
| TESTS : 1 | |
| (1/1) ./test.py:BasicTestSuite.test1: PASS (0.00 s) | |
| RESULTS : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | |
| JOB HTML : /home/apahim/avocado/job-results/job-2016-01-18T15.12-56f1f29/html/results.html | |
| TIME : 0.00 s | |
| [apahim@hurricane ~]$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment