]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/decorators: Added decorator to restart the DUT in case of test hang.
authorLucian Musat <george.l.musat@intel.com>
Tue, 15 Sep 2015 15:11:59 +0000 (18:11 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 15 Sep 2015 16:50:07 +0000 (17:50 +0100)
commitce9a7501ea29ddba61ef7c297223b3f7eca5a2a1
tree8a3ee9d5fb4ab9730e7ac3ca471056a7832ef173
parent6c6c6528954952e1e323f5a26afd93b99913e6f2
oeqa/decorators: Added decorator to restart the DUT in case of test hang.

Once the DUT is hanged during testing, currently all the following test
cases have to wait for default timeout to exit. Using this decorator the
user can choose a timeout at case by case basis and what happens when the
timeout is reached by overwriting the self.target.restart method.

[YOCTO #7853]

Signed-off-by: Lucian Musat <george.l.musat@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/oetest.py
meta/lib/oeqa/utils/decorators.py