From df88f14bdae63b86d97f93df82c91151331d29f7 Mon Sep 17 00:00:00 2001 From: Balamuruhan S Date: Mon, 25 Apr 2016 20:23:51 +0530 Subject: [PATCH] Ported error_cleanup from autotest-client-test to avocado --- generic/error_cleanup.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 generic/error_cleanup.py diff --git a/generic/error_cleanup.py b/generic/error_cleanup.py new file mode 100644 index 00000000..3f6b84d8 --- /dev/null +++ b/generic/error_cleanup.py @@ -0,0 +1,20 @@ +#! /usr/bin/env python + +from avocado import Test +from avocado import main + + +class error_cleanup(Test): + """ + Raise an exception during tearDown() + """ + + def test(self): + pass + + def tearDown(self): + self.error("Test a bug in tearDown()") + + +if __name__ == "__main__": + main()