Skip to content

Commit cf98482

Browse files
authored
Merge pull request #1014 from ldorau/Fix_paths_of_logs_in_test_valgrind.sh
Fix paths of logs in test_valgrind.sh
2 parents 1a5155f + 70c5906 commit cf98482

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/test_valgrind.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,12 @@ echo "Working directory: $(pwd)"
7474
echo "Running: \"valgrind $OPTION\" for the following tests:"
7575

7676
ANY_TEST_FAILED=0
77-
rm -f umf_test-*.log umf_test-*.err
77+
PATH_TESTS="./test/umf_test-*"
78+
PATH_EXAMPLES="./examples/umf_example_*"
7879

79-
[ "$TESTS" = "" ] && TESTS=$(ls -1 ./test/umf_test-* ./examples/umf_example_*)
80+
rm -f ${PATH_TESTS}.log ${PATH_TESTS}.err ${PATH_EXAMPLES}.log ${PATH_EXAMPLES}.err
81+
82+
[ "$TESTS" = "" ] && TESTS=$(ls -1 ${PATH_TESTS} ${PATH_EXAMPLES})
8083

8184
for test in $TESTS; do
8285
if [ ! -f $test ]; then
@@ -185,7 +188,7 @@ echo
185188
echo "======================================================================"
186189
echo
187190

188-
for log in $(ls -1 umf_test-*.log); do
191+
for log in $(ls -1 ${PATH_TESTS}.log ${PATH_EXAMPLES}.log); do
189192
echo ">>>>>>> LOG $log"
190193
cat $log
191194
echo

0 commit comments

Comments
 (0)