summaryrefslogtreecommitdiff
path: root/src/t
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2011-09-27 18:11:26 +0200
committerGuillem Jover <guillem@debian.org>2011-09-29 06:19:58 +0200
commit9817bf199f7197a16f55ed3a1503cb634a01ce81 (patch)
tree1b3a978e1a6add8ca9d8c4eef03edb563f28e305 /src/t
parent4100cc474b96b60bd2e53d854036249b067979ac (diff)
downloaddpkg-9817bf199f7197a16f55ed3a1503cb634a01ce81.tar.gz
Do not assume existence of paths on the build system in the test suite
Instead of using /etc use a known to exist directory in the build tree, and instead of hardcoding /bin/true, let the command module find it in the PATH.
Diffstat (limited to 'src/t')
-rw-r--r--src/t/100_dpkg_divert.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/t/100_dpkg_divert.t b/src/t/100_dpkg_divert.t
index 4b5053596..5a4603153 100644
--- a/src/t/100_dpkg_divert.t
+++ b/src/t/100_dpkg_divert.t
@@ -146,7 +146,7 @@ install_diversions('');
call_divert_badusage(['--add',], qr/needs a single argument/);
call_divert_badusage(['--add', 'foo'], qr/absolute/);
call_divert_badusage(['--add', "/foo\nbar"], qr/newline/);
-call_divert_badusage(['--add', "/etc"], qr/director(y|ies)/);
+call_divert_badusage(['--add', "$testdir"], qr/director(y|ies)/);
call_divert_badusage(['--add', "--divert", "bar", "/foo/bar"], qr/absolute/);
call_divert_badusage(['--remove'], qr/needs a single argument/);
call([@dd, '--admindir'], [],