|
|
Created:
7 years, 3 months ago by sukolsak Modified:
7 years, 3 months ago CC:
chromium-reviews Base URL:
http://git.chromium.org/chromium/src.git@master Visibility:
Public. |
DescriptionRun commands in the mini_installer test framework from the framework's directory.
The framework ran commands from the current working directory. Make it run commands from the framework's directory.
NOTRY=True
BUG=264859
TEST=
1) Uninstall Chrome (if it's installed.)
2) Build Chrome with Release mode and make sure that mini_installer.exe is created.
3) Go to src\chrome\test\mini_installer
4) Run "python test_installer.py config\config.config --build-dir=<build-dir> --target=Release" where <build-dir> is the path to main build directory (the parent of the Release directory). The test should pass.
5) Go to src\chrome\test
6) Run "python mini_installer\test_installer.py mini_installer\config\config.config --build-dir=<build-dir> --target=Release". The test should pass.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221361
Patch Set 1 #
Total comments: 2
Patch Set 2 : Address robertshield's comment. #Messages
Total messages: 22 (0 generated)
Could you please review this?
lgtm unless mathp has a better solution than os.path.dirname(__file__)
lgtm https://codereview.chromium.org/23557009/diff/1/chrome/test/mini_installer/te... File chrome/test/mini_installer/test_installer.py (right): https://codereview.chromium.org/23557009/diff/1/chrome/test/mini_installer/te... chrome/test/mini_installer/test_installer.py:108: def _RunCommand(self, command): please add a brief method comment that mentions that the command is run from the current file's dir
Thanks. https://codereview.chromium.org/23557009/diff/1/chrome/test/mini_installer/te... File chrome/test/mini_installer/test_installer.py (right): https://codereview.chromium.org/23557009/diff/1/chrome/test/mini_installer/te... chrome/test/mini_installer/test_installer.py:108: def _RunCommand(self, command): On 2013/09/04 22:16:29, robertshield wrote: > please add a brief method comment that mentions that the command is run from the > current file's dir Done.
lgtm as-is. alternatively, is there an advantage to having the commands be separate executable run in their own python interpreter rather than functions run within the main test harness? this would avoid the cwd problem, as well as potentially reduce overhead.
On 2013/09/04 23:15:17, grt wrote: > lgtm as-is. > > alternatively, is there an advantage to having the commands be separate > executable run in their own python interpreter rather than functions run within > the main test harness? this would avoid the cwd problem, as well as potentially > reduce overhead. Yes there is, this executes whatever the command is; sometimes that's an exe; this code doesn't need to know.
lgtm
On 2013/09/04 23:15:17, grt wrote: > lgtm as-is. > > alternatively, is there an advantage to having the commands be separate > executable run in their own python interpreter rather than functions run within > the main test harness? this would avoid the cwd problem, as well as potentially > reduce overhead. Thanks. One advantage that I can think of is that we don't need to distinguish between internal commands and external commands and it also makes the config file format simpler.
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sukolsak@chromium.org/23557009/10001
Retried try job too often on ios_dbg_simulator for step(s) ui_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_dbg_si...
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sukolsak@chromium.org/23557009/10001
Retried try job too often on ios_dbg_simulator for step(s) ui_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_dbg_si...
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sukolsak@chromium.org/23557009/10001
Retried try job too often on ios_dbg_simulator for step(s) ui_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_dbg_si...
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sukolsak@chromium.org/23557009/10001
Retried try job too often on ios_dbg_simulator for step(s) ui_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_dbg_si...
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sukolsak@chromium.org/23557009/10001
Retried try job too often on ios_dbg_simulator for step(s) ui_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_dbg_si...
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sukolsak@chromium.org/23557009/10001
Retried try job too often on ios_dbg_simulator for step(s) ui_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_dbg_si...
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sukolsak@chromium.org/23557009/10001
Message was sent while issue was closed.
Change committed as 221361 |