Skip to content

Commit 76fe46a

Browse files
simbit18xiaoxiang781216
authored andcommitted
tools/testbuild.sh: Added a break to the dotest Blacklist and CMake loop
Added break to the dotest Blacklist and CMake loop: it stops at the first match instead of continuing unnecessarily. Signed-off-by: simbit18 <simbit18@gmail.com>
1 parent 9e55df4 commit 76fe46a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tools/testbuild.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,7 @@ function dotest {
516516
if [[ "${check}" =~ ${re:1}$ ]]; then
517517
echo "Skipping: $1"
518518
skip=1
519+
break
519520
fi
520521
done
521522

@@ -525,6 +526,7 @@ function dotest {
525526
if [[ "${config/\//:}" == "${l}" ]]; then
526527
echo "Cmake in present: $1"
527528
cmake=1
529+
break
528530
fi
529531
done
530532
fi

0 commit comments

Comments
 (0)