Commit 153b958f authored by Niels Möller's avatar Niels Möller

* examples/run-tests (test_program): Use basename.

Rev: src/nettle/examples/run-tests:1.3
parent 384d11dc
......@@ -27,7 +27,7 @@ env_program () {
}
test_program () {
testname=`echo "$1" | sed -e 's,-test$,,' -e 's,^.*/,,'`
testname=`basename "$1" -test`
"$1"
case "$?" in
0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment