summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-04-23 16:34:23 +0100
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-04-23 16:34:23 +0100
commit21954744ce1e1b17c26f5a1e8f04ceeb048ae033 (patch)
tree192d4737aca17f86d59b10cab5ce88e5ee35c5fa /tests
parent391af21d8fe5592b334b7417d76415a6fbe64dda (diff)
downloadmorph-21954744ce1e1b17c26f5a1e8f04ceeb048ae033.tar.gz
Normalize test output for build-system.python-distutils test
The output otherwise differs between various Linux distros, with differnet distutils settings and Python versions.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/build-system-python-distutils.script6
-rw-r--r--tests/build-system-python-distutils.stdout7
2 files changed, 8 insertions, 5 deletions
diff --git a/tests/build-system-python-distutils.script b/tests/build-system-python-distutils.script
index 2c7c7df6..49ab98ce 100755
--- a/tests/build-system-python-distutils.script
+++ b/tests/build-system-python-distutils.script
@@ -58,4 +58,8 @@ do
echo "$chunk:" | sed 's/[^.]*//'
tar -tf "$chunk" | LC_ALL=C sort | sed '/^\.\/./s:^\./::'
echo
-done
+done |
+sed -e 's:^local/::' \
+ -e 's:lib/python2.[6-9]/:lib/python2.x/:' \
+ -e 's:/hello-0\.0\.0[^/]*\.egg-info$:/hello.egg-info/:' \
+ -e '/^$/d'
diff --git a/tests/build-system-python-distutils.stdout b/tests/build-system-python-distutils.stdout
index b78b608f..85a625db 100644
--- a/tests/build-system-python-distutils.stdout
+++ b/tests/build-system-python-distutils.stdout
@@ -5,7 +5,6 @@ baserock/hello.meta
bin/
bin/hello
lib/
-lib/python2.7/
-lib/python2.7/site-packages/
-lib/python2.7/site-packages/hello-0.0.0-py2.7.egg-info
-
+lib/python2.x/
+lib/python2.x/dist-packages/
+lib/python2.x/dist-packages/hello.egg-info/