| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 import os | 6 import os |
| 7 import sys | 7 import sys |
| 8 import re | 8 import re |
| 9 import tarfile | 9 import tarfile |
| 10 import tempfile | 10 import tempfile |
| 11 import unittest | 11 import unittest |
| 12 from test_sdktools import SdkToolsTestCase | 12 from sdktools_test import SdkToolsTestCase |
| 13 | 13 |
| 14 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) | 14 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) |
| 15 BUILD_TOOLS_DIR = os.path.dirname(SCRIPT_DIR) | 15 BUILD_TOOLS_DIR = os.path.dirname(SCRIPT_DIR) |
| 16 TOOLS_DIR = os.path.join(os.path.dirname(BUILD_TOOLS_DIR), 'tools') | 16 TOOLS_DIR = os.path.join(os.path.dirname(BUILD_TOOLS_DIR), 'tools') |
| 17 | 17 |
| 18 sys.path.extend([BUILD_TOOLS_DIR, TOOLS_DIR]) | 18 sys.path.extend([BUILD_TOOLS_DIR, TOOLS_DIR]) |
| 19 import manifest_util | 19 import manifest_util |
| 20 import oshelpers | 20 import oshelpers |
| 21 | 21 |
| 22 | 22 |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 | 218 |
| 219 def testUpdateUnknownBundles(self): | 219 def testUpdateUnknownBundles(self): |
| 220 """The update command should ignore unknown bundles and notify the user.""" | 220 """The update command should ignore unknown bundles and notify the user.""" |
| 221 self._WriteManifest() | 221 self._WriteManifest() |
| 222 output = self._Run(['update', 'foobar']) | 222 output = self._Run(['update', 'foobar']) |
| 223 self.assertTrue('unknown bundle' in output) | 223 self.assertTrue('unknown bundle' in output) |
| 224 | 224 |
| 225 | 225 |
| 226 if __name__ == '__main__': | 226 if __name__ == '__main__': |
| 227 sys.exit(unittest.main()) | 227 sys.exit(unittest.main()) |
| OLD | NEW |