set -ex
test -n "$*"
-trap 'git reset --hard;git clean -df;exit 125' EXIT
+trap 'sleep 0;git reset --hard;git clean -dfx;exit 125' EXIT
+git reset --hard
+git clean -dfx
+# patch -p1 <~/t/bisect.patch || :
+errs12 -s --fast --disable-werror --without-python --disable-plugins --disable-gdbserver --disable-gold
+#errs12 -s --fast --disable-gold
git reset --hard
-git clean -df
-errs12 -s --fast --disable-werror --without-python --disable-plugins
trap '' EXIT
set +e
"$@"
rc=$?
set -e
#git reset --hard
-#git clean -df
+#git clean -dfx
echo rc=$rc
exit $rc