-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: ThreeHrSleep <151536303+ThreeHrSleep@users.noreply.github.com> Co-authored-by: jking-aus <72330194+jking-aus@users.noreply.github.com> Co-authored-by: Daniel Knopik <daniel@dknopik.de> Co-authored-by: Anton Hughes <kurrent93@gmail.com>
- Loading branch information
1 parent
49f69c0
commit a9c284a
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
# Run lockbud to check for deadlocks and capture the output | ||
output=$(cargo lockbud -k deadlock -b -l tokio_util 2>&1) | ||
|
||
# Check if lockbud returned any issues | ||
if echo "$output" | grep -q '"bug_kind"'; then | ||
# Print the JSON payload | ||
echo "Lockbud detected issues:" | ||
echo "$output" | ||
|
||
# Exit with a non-zero status to indicate an error | ||
exit 1 | ||
else | ||
echo "No issues detected by Lockbud." | ||
exit 0 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters