Skip to content

Commit d7a2cdc

Browse files
committed
corrupt files
1 parent 3e82226 commit d7a2cdc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,13 @@ jobs:
446446
# The jar is run twice to exercise different code paths.
447447
- run: |
448448
java -jar ${{ matrix.extraOpts }} *.jar --smoketest
449+
if [ -d ~/.wpilib ]; then
450+
RANDOM_FILE=$(find ~/.wpilib -type f -name "*.so" | shuf -n 1)
451+
if [ ! -z "$RANDOM_FILE" ]; then
452+
echo "Corrupting file: $RANDOM_FILE"
453+
echo "corrupted data" > "$RANDOM_FILE"
454+
fi
455+
fi
449456
java -jar ${{ matrix.extraOpts }} *.jar --smoketest
450457
if: ${{ (matrix.os) != 'windows-latest' }}
451458
- run: |

0 commit comments

Comments
 (0)