[PATCH 5 of 8] tests: stop tracking tests/gpg/random_seed

Mads Kiilerich mads at kiilerich.com
Sun Jan 19 18:32:29 CST 2014


# HG changeset patch
# User Mads Kiilerich <madski at unity3d.com>
# Date 1390177794 -3600
#      Mon Jan 20 01:29:54 2014 +0100
# Node ID 7a985a8337c0a6787208e848f046e1d6dc2d7d29
# Parent  183ba00bd39626c65140cf5715211895c84810a0
tests: stop tracking tests/gpg/random_seed

test-gpg.t left the random_seed file as modified. That was slightly confusing
... and it was accidentally changed in ea4996754d91.

The seed is created on demand and there is no reason to track it. There is also
no reason to leak state between test runs so we let the test clean up after
running.

diff --git a/tests/gpg/random_seed b/tests/gpg/random_seed
deleted file mode 100644
index 44d97c4f6d14178794773d0d6c4f3098c9844072..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
GIT binary patch
literal 0
Hc$@<O00001

diff --git a/tests/test-gpg.t b/tests/test-gpg.t
--- a/tests/test-gpg.t
+++ b/tests/test-gpg.t
@@ -31,4 +31,7 @@ the main hg working dir
   $ "$TESTDIR/md5sum.py" "$TESTDIR/gpg/trustdb.gpg"
   f6b9c78c65fa9536e7512bb2ceb338ae  */gpg/trustdb.gpg (glob)
 
+don't leak any state to next test run
+  $ rm -f "$TESTDIR/gpg/random_seed"
+
   $ cd ..


More information about the Mercurial-devel mailing list