Skip to content

Commit 31ef659

Browse files
committed
when --log-path-by-env is used, pick and test the first token
1 parent 8950d15 commit 31ef659

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

darshan-runtime/test/tst_runs.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ echo ""
2929

3030
TODAY_DATE_PATH=`date "+%Y/%-m/%-d"`
3131
LOG_PATH_ENV=`sh $DARSHAN_CONFIG --log-path-by-env`
32+
echo "LOG_PATH_ENV=$LOG_PATH_ENV"
33+
3234
if test "x${LOG_PATH_ENV}" != x ; then
33-
if test "x${!LOG_PATH_ENV}" = x ; then
35+
TOKEN1=`echo ${LOG_PATH_ENV} | cut -d, -f1`
36+
if test "x${!TOKEN1}" = x ; then
3437
echo ""
3538
echo "Warning: ---------------------------------------------------------"
3639
echo " Darshan was configure with --log-path-by-env set to $LOG_PATH_ENV"

0 commit comments

Comments
 (0)