diff tests/blackbox-readonly-dispatch.py @ 35724:853bf7d90804

blackbox: if --debug is used, also trace ui.debug() calls Differential Revision: https://phab.mercurial-scm.org/D1880
author Joerg Sonnenberger <joerg@bec.de>
date Thu, 18 Jan 2018 12:55:19 +0100
parents 0767c2f624c6
children 70a98c3fba2a
line wrap: on
line diff
--- a/tests/blackbox-readonly-dispatch.py	Thu Jan 18 14:43:04 2018 +0000
+++ b/tests/blackbox-readonly-dispatch.py	Thu Jan 18 12:55:19 2018 +0100
@@ -18,8 +18,8 @@
 f = open('foo', 'wb')
 f.write('foo\n')
 f.close()
-testdispatch("add foo")
-testdispatch("commit -m commit1 -d 2000-01-01 foo")
+testdispatch("--debug add foo")
+testdispatch("--debug commit -m commit1 -d 2000-01-01 foo")
 
 # append to file 'foo' and commit
 f = open('foo', 'ab')
@@ -29,8 +29,8 @@
 os.rmdir(".hg/blackbox.log")
 # replace it with the real blackbox.log file
 os.rename(".hg/blackbox.log-", ".hg/blackbox.log")
-testdispatch("commit -m commit2 -d 2000-01-02 foo")
+testdispatch("--debug commit -m commit2 -d 2000-01-02 foo")
 
 # check 88803a69b24 (fancyopts modified command table)
-testdispatch("log -r 0")
-testdispatch("log -r tip")
+testdispatch("--debug log -r 0")
+testdispatch("--debug log -r tip")