summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/build-system-cpan.script5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/build-system-cpan.script b/tests/build-system-cpan.script
index 59017d3f..31d69f1d 100755
--- a/tests/build-system-cpan.script
+++ b/tests/build-system-cpan.script
@@ -55,11 +55,8 @@ git commit --quiet -m 'convert hello into a perl cpan project'
"$SRCDIR/scripts/test-morph" build --prefix=/ chunk-repo farrokh hello.morph
-TEMPEXTRACT="$DATADIR/cpanextract"
-mkdir -p "$TEMPEXTRACT"
-
PERLMAJOR=`perl -e 'print $^V' | sed 's|^v\([^\.]*\)\.[^\.]*\.[^\.]*$|\1|'`
-ARCH=`perl -V | grep archname | sed 's|^.*archname=\(\S*\).*$|\1|'`
+ARCH=`perl -V | grep 'archname' | grep -v -e '-Darchname' | sed 's|^.*archname=\(\S*\).*$|\1|'`
for chunk in "$DATADIR/cache/"*.chunk.*
do