chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65c5679
)
test suite: Provide t-defdistro (for use with t-alt-test)
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 9 Jan 2017 16:10:16 +0000
(16:10 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 9 Jan 2017 16:10:16 +0000
(16:10 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/lib
patch
|
blob
|
history
diff --git
a/tests/lib
b/tests/lib
index 1af0288aeace7db78adc3b6518af4529dc1972af..ae3bb7f8429610c95ddb91e52569dbb8ddc878bc 100644
(file)
--- a/
tests/lib
+++ b/
tests/lib
@@
-28,6
+28,8
@@
t-set-intree
: ${DGIT_TEST_DEBUG=-D}
export DGIT_TEST_DEBUG
+: ${DGIT_TEST_DISTRO+ ${distro=${DGIT_TEST_DISTRO}}}
+
export GIT_COMMITTER_DATE='1440253867 +0100'
export GIT_AUTHOR_DATE='1440253867 +0100'
@@
-778,6
+780,12
@@
t-822-field () {
' <$file
}
+t-defdistro () {
+ export DGIT_TEST_DISTRO=''
+ t-git-config dgit-suite.sid.distro test-dummy
+ t-git-config dgit-suite.unstable.distro test-dummy
+}
+
t-stunt-envvar () {
local var=$1
local tstunt=$2