Fix RiscV support - Rendering issue for armv7l
[platform/framework/web/chromium-efl.git] / PRESUBMIT_test_mocks.py
index ce22b79..fbd00a0 100644 (file)
@@ -80,6 +80,10 @@ class MockInputApi(object):
     self.presubmit_local_path = os.path.dirname(__file__)
     self.is_windows = sys.platform == 'win32'
     self.no_diffs = False
+    # Although this makes assumptions about command line arguments used by test
+    # scripts that create mocks, it is a convenient way to set up the verbosity
+    # via the input api.
+    self.verbose = '--verbose' in sys.argv
 
   def CreateMockFileInPath(self, f_list):
     self.os_path.exists = lambda x: x in f_list
@@ -205,6 +209,9 @@ class MockFile(object):
         self._scm_diff += "+%s\n" % l
     self._old_contents = old_contents
 
+  def __str__(self):
+    return self._local_path
+
   def Action(self):
     return self._action