Skip to content

Commit

Permalink
Ported error_cleanup from autotest-client-test to avocado
Browse files Browse the repository at this point in the history
  • Loading branch information
Balamuruhan S committed Apr 25, 2016
1 parent 9ba8c6a commit df88f14
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions generic/error_cleanup.py
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit df88f14

Please sign in to comment.