Skip to content

Commit

Permalink
cocci/run-check: log if parallel command is not found
Browse files Browse the repository at this point in the history
If CONCURRENCY_LEVEL was set, the script would log a concurrency level
even if the parallel command was not available. Not log if parallel is
not available and set concurrency to 1.
  • Loading branch information
jasonish authored and victorjulien committed Feb 15, 2024
1 parent 6198ea5 commit f7114b7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions qa/coccinelle/run_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ else
BUILT_COCCI_FILES=""
fi

if [ -z "$CONCURRENCY_LEVEL" ]; then
if ! command -v parallel > /dev/null; then
echo "Concurrency disabled, command 'parallel' not available"
CONCURRENCY_LEVEL=1
elif [ -z "$CONCURRENCY_LEVEL" ]; then
echo "No concurrency"
CONCURRENCY_LEVEL=1
echo "No concurrency"
else
echo "Using concurrency level $CONCURRENCY_LEVEL"
fi
Expand Down

0 comments on commit f7114b7

Please sign in to comment.