summaryrefslogtreecommitdiff
path: root/test/rules-test.sh
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2012-11-19 19:09:37 -0500
committerAnthony G. Basile <blueness@gentoo.org>2012-11-19 19:09:48 -0500
commit802d021d2e403862f4692ee67956e7e0160c1879 (patch)
tree8bcc73a40238e848fc36539e848e3e254316f6b5 /test/rules-test.sh
parenta21f6c078b3f8ffe6c54247952030502166e8c12 (diff)
test/Makefile.am: fix tests for make distcheck
At several points in the forked code, top_srcdir and top_builddir are mixed up. It is not clear if this is an upstream bug or if this is a result of the initial restructuring of the build system. This commit addresses this issue for tests triggered during make distcheck. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'test/rules-test.sh')
-rwxr-xr-xtest/rules-test.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rules-test.sh b/test/rules-test.sh
index 1e224ff8b5..d560f9a217 100755
--- a/test/rules-test.sh
+++ b/test/rules-test.sh
@@ -4,7 +4,7 @@
# (C) 2010 Canonical Ltd.
# Author: Martin Pitt <martin.pitt@ubuntu.com>
-[ -n "$srcdir" ] || srcdir=`dirname $0`/..
+[ -n "$builddir" ] || builddir=`dirname $0`/..
# skip if we don't have python
type python >/dev/null 2>&1 || {
@@ -12,4 +12,4 @@ type python >/dev/null 2>&1 || {
exit 0
}
-$srcdir/test/rule-syntax-check.py `find $srcdir/rules -name '*.rules'`
+$builddir/test/rule-syntax-check.py `find $builddir/rules -name '*.rules'`