File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 7
7
"label" : " Build" ,
8
8
"type" : " shell" ,
9
9
10
- "command" : " set -e ; set -x ; . /run.sh" ,
10
+ "command" : " set -e ; set -x ; $PWD /run.sh" ,
11
11
12
12
"problemMatcher" : " $rustc" ,
13
13
"group" : {
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
+ # # Test a NuttX Commit for Git Bisect
3
+
4
+ echo ; echo ; echo " --------------------------------------------------------------------------------"
5
+ echo " Testing Commit $( git rev-parse HEAD) "
6
+ echo " Running https://github.com/lupyuen/nuttx-bisect/blob/main/my-test-script.sh"
7
+ echo " Called by https://github.com/lupyuen/nuttx-bisect/blob/main/run.sh"
8
+ date -u
2
9
3
10
set -e # # Exit when any command fails
4
11
set -x # # Echo commands
@@ -11,9 +18,14 @@ TZ=UTC0 \
11
18
--format=" %cd | %H | %s"
12
19
nuttx_hash=$( git rev-parse HEAD)
13
20
21
+ # # Visualise the Git Bisect
22
+ git bisect log
23
+
14
24
random_0_or_1=$(( $RANDOM % 2 ))
15
25
if (( "$random_0_or_1 " == "0 " )) ; then
26
+ set +x ; echo " **** Simulate Error" ; set -x
16
27
exit 0
17
28
else
29
+ set +x ; echo " **** Simulate OK" ; set -x
18
30
exit 1
19
31
fi
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
+ # # Run Git Bisect on NuttX
2
3
3
4
set -e # # Exit when any command fails
4
5
set -x # # Echo commands
@@ -25,3 +26,6 @@ git bisect good 656883fec5561ca91502a26bf018473ca0229aa4
25
26
26
27
# # Run the Git Bisect automatically
27
28
git bisect run $script_dir /my-test-script.sh
29
+
30
+ # # Visualise the Git Bisect
31
+ git bisect log
You can’t perform that action at this time.
0 commit comments