| Index: client/site_tests/power_LoadTest/power_LoadTest.py
|
| diff --git a/client/site_tests/power_LoadTest/power_LoadTest.py b/client/site_tests/power_LoadTest/power_LoadTest.py
|
| index 0097c12d2d43f329927c84543aaba86a36aba5b8..f3af21a4295e2f4dec6d50cd544f75822a9c008b 100755
|
| --- a/client/site_tests/power_LoadTest/power_LoadTest.py
|
| +++ b/client/site_tests/power_LoadTest/power_LoadTest.py
|
| @@ -1,4 +1,4 @@
|
| -# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
|
| +# Copyright (c) 2011 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.
|
|
|
| @@ -111,16 +111,9 @@ class power_LoadTest(cros_ui_test.UITest):
|
| # can access it
|
| os.system('chmod -R 755 %s' % self.bindir)
|
|
|
| - # TODO (bleung) :
|
| - # The new external extension packed crx means we can't pass params by
|
| - # modifying params.js
|
| - # Possible solution :
|
| - # - modify extension to not start until we poke it from the browser.
|
| - # then pass through URL.
|
| -
|
| - # write test parameters to the power extension's params.js file
|
| - # self._ext_path = os.path.join(self.bindir, 'extension')
|
| - # self._write_ext_params()
|
| + # write test parameters to the params.js file to be read by the test
|
| + # extension.
|
| + self._write_ext_params()
|
|
|
| # copy external_extensions.json to known location
|
| self._json_path = os.path.join(self.bindir, '..')
|
| @@ -258,7 +251,7 @@ class power_LoadTest(cros_ui_test.UITest):
|
| for k in params_dict:
|
| data += template % (k, getattr(self, params_dict[k]))
|
|
|
| - filename = os.path.join(self._ext_path, 'params.js')
|
| + filename = os.path.join(self.bindir, 'params.js')
|
| utils.open_write_close(filename, data)
|
|
|
| logging.debug('filename ' + filename)
|
|
|