changeset 41633:7b1b0415f8e5

blackbox: test that track=* works to log everything Differential Revision: https://phab.mercurial-scm.org/D5784
author Kyle Lippincott <spectral@google.com>
date Thu, 31 Jan 2019 12:49:22 -0800
parents 31dfe7026f8d
children 62bf34f70fe8
files tests/test-blackbox.t
diffstat 1 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-blackbox.t	Thu Jan 31 11:55:02 2019 -0800
+++ b/tests/test-blackbox.t	Thu Jan 31 12:49:22 2019 -0800
@@ -365,6 +365,24 @@
   $ hg blackbox
   $ cd $TESTTMP
 
+a '*' entry in blackbox.track is interpreted as log everything
+
+  $ hg --config blackbox.track='*' \
+  >    --config blackbox.logsource=True \
+  >    init track_star
+  $ cd track_star
+  $ cat >> .hg/hgrc << EOF
+  > [blackbox]
+  > logsource = True
+  > track = *
+  > EOF
+(only look for entries with specific logged sources, otherwise this test is
+pretty brittle)
+  $ hg blackbox | egrep '\[command(finish)?\]'
+  1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000) [commandfinish]> --config 'blackbox.track=*' --config 'blackbox.logsource=True' init track_star exited 0 after * seconds (glob)
+  1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000) [command]> blackbox
+  $ cd $TESTTMP
+
 #if chg
 
 when using chg, blackbox.log should get rotated correctly