fix the test with new directory structure

This commit is contained in:
Klas Lindfors
2014-06-17 08:31:58 +02:00
parent f1c5302407
commit 2d2f14b9f1
+4 -2
View File
@@ -31,10 +31,12 @@
set -e
HELP_OUTPUT=$(../yubico-piv-tool$EXEEXT --help)
BIN="../tool/yubico-piv-tool${EXEEXT}"
HELP_OUTPUT=$($BIN --help)
expected="yubico-piv-tool $VERSION"
VERSION_OUTPUT=$(../yubico-piv-tool$EXEEXT --version | sed 's/\r//')
VERSION_OUTPUT=$($BIN --version | sed 's/\r//')
if [ "x$VERSION_OUTPUT" != "x$expected" ]; then
echo "Version ($VERSION_OUTPUT) not matching expected output $expected."
exit 1