mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 20:36:03 +02:00
better bisect script
This commit is contained in:
parent
61ccc1efd2
commit
88d685df53
1 changed files with 7 additions and 7 deletions
|
@ -6,15 +6,15 @@
|
||||||
# 3) checkout the commit that's known to be failing
|
# 3) checkout the commit that's known to be failing
|
||||||
# 4) run this script supplying the commit sha / tag name that works and the name of the newly created test
|
# 4) run this script supplying the commit sha / tag name that works and the name of the newly created test
|
||||||
|
|
||||||
# usage: scripts/bisect.sh <ref that works> <integration test name>
|
# usage: scripts/bisect.sh <ref that's broken> <ref that's working> <integration test name>
|
||||||
# e.g. scripts/bisect.sh v0.32.1 mergeConflictsResolvedExternally
|
# e.g. scripts/bisect.sh v0.32.1 mergeConflictsResolvedExternally
|
||||||
# It's assumed that the current commit (i.e. HEAD) is broken.
|
# It's assumed that the current commit (i.e. HEAD) is broken.
|
||||||
|
|
||||||
set -o pipefail
|
if [[ $# -ne 3 ]] ; then
|
||||||
|
echo 'Usage: scripts/bisect.sh <ref thats broken> <ref thats working> <integration test name>'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
echo $1
|
git bisect start $1 $2
|
||||||
echo $2
|
git bisect run sh -c "(go build -o /dev/null || exit 125) && go test ./pkg/gui -run /$3"
|
||||||
|
|
||||||
git bisect start HEAD $1
|
|
||||||
git bisect run go test ./pkg/gui -run /$2
|
|
||||||
git bisect reset
|
git bisect reset
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue