From: Hilko Bengen <bengen@debian.org>
Date: Wed, 20 Apr 2016 21:31:16 +0200
Subject: Fix FTBFS due to wrong TEST_PREFIX

---
 tests/test_api_functions.sh    | 2 +-
 tests/test_fsntfsinfo.sh       | 2 +-
 tests/test_python_functions.sh | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/test_api_functions.sh b/tests/test_api_functions.sh
index 20dfd08..79da3e2 100755
--- a/tests/test_api_functions.sh
+++ b/tests/test_api_functions.sh
@@ -8,7 +8,7 @@ EXIT_FAILURE=1;
 EXIT_IGNORE=77;
 
 TEST_PREFIX=`dirname ${PWD}`;
-TEST_PREFIX=`basename ${TEST_PREFIX} | sed 's/^lib\([^-]*\)/\1/'`;
+TEST_PREFIX=`basename ${TEST_PREFIX} | sed 's/^lib\([^-]*\).*$/\1/'`;
 
 TEST_PROFILE="lib${TEST_PREFIX}";
 TEST_FUNCTIONS="get_version";
diff --git a/tests/test_fsntfsinfo.sh b/tests/test_fsntfsinfo.sh
index 6d8a0ff..2d26856 100755
--- a/tests/test_fsntfsinfo.sh
+++ b/tests/test_fsntfsinfo.sh
@@ -8,7 +8,7 @@ EXIT_FAILURE=1;
 EXIT_IGNORE=77;
 
 TEST_PREFIX=`dirname ${PWD}`;
-TEST_PREFIX=`basename ${TEST_PREFIX} | sed 's/^lib\([^-]*\)/\1/'`;
+TEST_PREFIX=`basename ${TEST_PREFIX} | sed 's/^lib\([^-]*\).*$/\1/'`;
 TEST_SUFFIX="info";
 
 TEST_PROFILE="${TEST_PREFIX}${TEST_SUFFIX}";
diff --git a/tests/test_python_functions.sh b/tests/test_python_functions.sh
index c6daa32..493d6da 100755
--- a/tests/test_python_functions.sh
+++ b/tests/test_python_functions.sh
@@ -8,7 +8,7 @@ EXIT_FAILURE=1;
 EXIT_IGNORE=77;
 
 TEST_PREFIX=`dirname ${PWD}`;
-TEST_PREFIX=`basename ${TEST_PREFIX} | sed 's/^lib\([^-]*\)/\1/'`;
+TEST_PREFIX=`basename ${TEST_PREFIX} | sed 's/^lib\([^-]*\).*$/\1/'`;
 
 TEST_PROFILE="py${TEST_PREFIX}";
 TEST_FUNCTIONS="get_version";
