Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Unified Diff: chrome/test/mini_installer/verifier.py

Issue 2747023002: Cleanup machine based on the state in configuration file for mini installer test.
Patch Set: refactor to use visitor pattern Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/mini_installer/variable_expander.py ('k') | chrome/test/mini_installer/verifier_runner.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/mini_installer/verifier.py
diff --git a/chrome/test/mini_installer/verifier.py b/chrome/test/mini_installer/verifier.py
index 053096b4a807805a8f8d90a0445900cdb1ac5c6c..5ca22650682f61de5b0efe1c2a92678e56edbb11 100644
--- a/chrome/test/mini_installer/verifier.py
+++ b/chrome/test/mini_installer/verifier.py
@@ -50,3 +50,12 @@ class Verifier:
The result of the evaluated condition.
"""
return eval(condition, {'__builtins__': {'False': False, 'True': True}})
+
+ def _Assert(self, is_true, message):
+ """ Check whether the test result equals to the expectation.
+
+ Args:
+ is_true: A boolean represents whether the assert is success.
+ message: The error message if assert failed.
+ """
+ assert is_true, message
« no previous file with comments | « chrome/test/mini_installer/variable_expander.py ('k') | chrome/test/mini_installer/verifier_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698