~brendan-donegan/checkbox/story632_wireless_selftest_after_suspend

« back to all changes in this revision

Viewing changes to checkbox_cli/cli_interface.py

  • Committer: Marc Tardif
  • Date: 2008-08-13 20:04:12 UTC
  • Revision ID: marc.tardif@canonical.com-20080813200412-52u3d6fs6ulnxlgv
Renamed hwtest to checkbox.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
#
4
4
# Written by Marc Tardif <marc@interunion.ca>
5
5
#
6
 
# This file is part of HWTest.
 
6
# This file is part of Checkbox.
7
7
#
8
 
# HWTest is free software: you can redistribute it and/or modify
 
8
# Checkbox is free software: you can redistribute it and/or modify
9
9
# it under the terms of the GNU General Public License as published by
10
10
# the Free Software Foundation, either version 3 of the License, or
11
11
# (at your option) any later version.
12
12
#
13
 
# HWTest is distributed in the hope that it will be useful,
 
13
# Checkbox is distributed in the hope that it will be useful,
14
14
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15
15
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
16
# GNU General Public License for more details.
17
17
#
18
18
# You should have received a copy of the GNU General Public License
19
 
# along with HWTest.  If not, see <http://www.gnu.org/licenses/>.
 
19
# along with Checkbox.  If not, see <http://www.gnu.org/licenses/>.
20
20
#
21
21
import re
22
22
import sys
24
24
 
25
25
from gettext import gettext as _
26
26
 
27
 
from hwtest.result import PASS, FAIL, SKIP
28
 
from hwtest.test import ALL_CATEGORIES
29
 
from hwtest.user_interface import UserInterface
 
27
from checkbox.result import PASS, FAIL, SKIP
 
28
from checkbox.test import ALL_CATEGORIES
 
29
from checkbox.user_interface import UserInterface
30
30
 
31
31
 
32
32
class CLIDialog(object):
184
184
class CLIInterface(UserInterface):
185
185
 
186
186
    def show_wait(self, message, function):
187
 
        title = _("Hardware Testing")
 
187
        title = _("System Testing")
188
188
        self.progress = CLIProgressDialog(title, message)
189
189
        self.progress.show()
190
190
        self.do_function(function)
207
207
 
208
208
    def show_test(self, test, run_test=True):
209
209
        if str(test.command) and run_test:
210
 
            title = _("Hardware Testing")
 
210
            title = _("System Testing")
211
211
            self.progress = CLIProgressDialog(title,
212
212
                _("Running test: %s") % test.name)
213
213
            self.progress.show()