| Index: client/site_tests/hardware_GPIOSwitches/hardware_GPIOSwitches.py
|
| diff --git a/client/site_tests/hardware_GPIOSwitches/hardware_GPIOSwitches.py b/client/site_tests/hardware_GPIOSwitches/hardware_GPIOSwitches.py
|
| index bc35e026ff50c2f2436ff362f72230e1c785941a..0b2878ccbbe08db24b288ed6b4e555de42b5eab6 100644
|
| --- a/client/site_tests/hardware_GPIOSwitches/hardware_GPIOSwitches.py
|
| +++ b/client/site_tests/hardware_GPIOSwitches/hardware_GPIOSwitches.py
|
| @@ -1,3 +1,5 @@
|
| +# -*- coding: utf-8 -*-
|
| +#
|
| # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
|
| # Use of this source code is governed by a BSD-style license that can be
|
| # found in the LICENSE file.
|
| @@ -25,7 +27,10 @@ class hardware_GPIOSwitches(test.test):
|
| if os.path.exists(gpio_root):
|
| utils.system("rm -rf %s" % gpio_root)
|
| utils.system("mkdir %s" % (gpio_root))
|
| - utils.system("/usr/sbin/gpio_setup")
|
| + try:
|
| + utils.system("/usr/sbin/gpio_setup")
|
| + except error.CmdError:
|
| + raise error.TestNAError('GPIO setup failed\nGPIO 設定失敗')
|
| self._gpio_root=gpio_root
|
|
|
| def run_once(self):
|
|
|