summaryrefslogtreecommitdiff
path: root/tools/bisect-create
diff options
context:
space:
mode:
authorAlexander Strasser <eclipse7@gmx.net>2012-07-11 23:12:00 +0200
committerAlexander Strasser <eclipse7@gmx.net>2012-07-24 01:24:23 +0200
commit3f22fcce3ae67ef052b435a8aaee266e258f0734 (patch)
treec9458377db4bf2dfe7a18adde9949a75697a09c6 /tools/bisect-create
parent6a2bad2c4f609c2a35672c2e5b9775b0865b4c3a (diff)
tools/bisect-create: Support "bisect run"
Make it possible to use the run bisect sub command. As with all other ffbisect commands, revisions that do not contain the needed tools are skipped. Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
Diffstat (limited to 'tools/bisect-create')
-rwxr-xr-xtools/bisect-create4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/bisect-create b/tools/bisect-create
index 6442b5cbe3..fc60e86669 100755
--- a/tools/bisect-create
+++ b/tools/bisect-create
@@ -39,4 +39,8 @@ case "$1" in
git bisect skip || break
done
;;
+ run)
+ shift # remove "run" from arguments
+ git bisect run sh -c "ls \`cat tools/bisect.need\` > /dev/null 2> /dev/null || exit 125; \"\$@\"" sh "$@"
+ ;;
esac