Skip to content

Commit 30c5e88

Browse files
committed
Clean up
1 parent 4489478 commit 30c5e88

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

my-test-script.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,19 @@ date -u
1010
set -e ## Exit when any command fails
1111
set -x ## Echo commands
1212

13+
## Get the NuttX Hash (Commit ID)
14+
nuttx_hash=$(git rev-parse HEAD)
1315
git status
1416
TZ=UTC0 \
1517
git --no-pager \
1618
log -1 \
1719
--date='format-local:%Y-%m-%dT%H:%M:%S' \
1820
--format="%cd | %H | %s"
19-
nuttx_hash=$(git rev-parse HEAD)
2021

2122
## Visualise the Git Bisect
2223
git bisect log
2324

25+
## Randomly simulate OK or Error
2426
random_0_or_1=$(( $RANDOM % 2 ))
2527
if (( "$random_0_or_1" == "0" )); then
2628
set +x ; echo "**** Simulate Error" ; set -x

0 commit comments

Comments
 (0)