Skip to content

Commit 1b20a28

Browse files
authored
chore: guard unit-test.sh from being invoked by users (#4085)
1 parent d1f5240 commit 1b20a28

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

unit-test.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#!/usr/bin/env bash
22

3+
# The test should not be run by regular users. This should only be run in CI or by developers.
4+
if [[ "$CI" != "true" ]]; then
5+
echo "This script is intended to be run in CI or by developers only."
6+
exit 1
7+
fi
8+
39
export REPORT_SELF_HOSTED_ISSUES=0 # will be over-ridden in the relevant test
410

511
FORCE_CLEAN=1 "./scripts/reset.sh"

0 commit comments

Comments
 (0)