Skip to content

Commit

Permalink
Simplify check for no tests in ctest_to_gitlab.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
msimberg committed Sep 25, 2024
1 parent eee19fd commit 02bf96a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/ctest_to_gitlab.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ for rank_label in `ctest --print-labels | egrep -o "RANK_[1-9][0-9]?"`; do
C=$(( THREADS_PER_NODE / N ))

# Skip label combinations that match no tests
if ! ctest -N -L $category_label -L $rank_label | egrep --quiet "^Total Tests: [1-9][0-9]?$"; then
if [[ "$(ctest -N -L $category_label -L $rank_label | tail -n1)" == "Total Tests: 0"]]; then
continue
fi

Expand Down

0 comments on commit 02bf96a

Please sign in to comment.