diff --git a/meta-oe/recipes-devtools/libtoml11/files/run-ptest b/meta-oe/recipes-devtools/libtoml11/files/run-ptest index 9bc480aa7f..4da9e68cc5 100755 --- a/meta-oe/recipes-devtools/libtoml11/files/run-ptest +++ b/meta-oe/recipes-devtools/libtoml11/files/run-ptest @@ -1,10 +1,11 @@ -#!/bin/sh +#!/usr/bin/env sh + +cd tests || exit 1 + +rm -rf tests.log -cd tests for atest in test_* ; do - rm -rf tests.log - ./${atest} > tests.log 2>&1 - if [ $? = 0 ] ; then + if ./"${atest}" >> tests.log 2>&1; then echo "PASS: ${atest}" else echo "FAIL: ${atest}"