Patchwork D5783: blackbox: test that unsetting track disables blackbox logging

login
register
mail settings
Submitter phabricator
Date Feb. 9, 2019, 9:46 p.m.
Message ID <a7279d051f4128e5668d2c60d2a289d9@localhost.localdomain>
Download mbox | patch
Permalink /patch/38598/
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 rHG31dfe7026f8d: blackbox: test that unsetting track disables blackbox logging (authored by spectral, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5783?vs=13653&id=13962

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

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
@@ -354,6 +354,17 @@ 
   warning: cannot write to blackbox.log: $TESTTMP/gone/.hg/blackbox.log: $ENOTDIR$ (windows !)
   $ cd ..
 
+blackbox should disable itself if track is empty
+
+  $ hg --config blackbox.track= init nothing_tracked
+  $ cd nothing_tracked
+  $ cat >> .hg/hgrc << EOF
+  > [blackbox]
+  > track =
+  > EOF
+  $ hg blackbox
+  $ cd $TESTTMP
+
 #if chg
 
 when using chg, blackbox.log should get rotated correctly