Patchwork D5784: blackbox: test that track=* works to log everything

login
register
mail settings
Submitter phabricator
Date Feb. 9, 2019, 9:46 p.m.
Message ID <f2416e992dd5d65ca1eb51abe5ed79ee@localhost.localdomain>
Download mbox | patch
Permalink /patch/38599/
State Not Applicable
Headers show

Comments

phabricator - Feb. 9, 2019, 9:46 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG7b1b0415f8e5: blackbox: test that track=* works to log everything (authored by spectral, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5784?vs=13657&id=13963

REVISION DETAIL
  https://phab.mercurial-scm.org/D5784

AFFECTED FILES
  tests/test-blackbox.t

CHANGE DETAILS




To: spectral, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/tests/test-blackbox.t b/tests/test-blackbox.t
--- a/tests/test-blackbox.t
+++ b/tests/test-blackbox.t
@@ -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