blob: 76e641a9a8ec8f5b785e2ec1c1f5c8bdc9491ee4 [file] [log] [blame]
Kuang-che Wu88875db2017-07-20 10:47:53 +08001#!/bin/sh
2# Copyright 2017 The Chromium OS Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6# old
7export DIALOG_OK=0
8# new
9export DIALOG_EXTRA=1
10# skip
11export DIALOG_CANCEL=125
12# abort
Kuang-che Wu0476d1f2019-03-04 19:27:01 +080013export DIALOG_ESC=128
Kuang-che Wu88875db2017-07-20 10:47:53 +080014
15TEXT="$BISECT_REV
16What is current behavior?
17
18[old]: current behavior is as same as old version
19
20[new]: current behavior is as same as new version
21
22[skip]: this version is neither old nor new, or unable to tell temporarily.
23
24If you want to abort bisection, press [Esc] key.
25"
26
27# show dialog on tty, because bisector will capture and hide stdout and stderr.
28export DIALOG_TTY=1
29dialog --ok-label old --extra-button --extra-label new --cancel-label skip --yesno "$TEXT" 20 60