Investigating a bug where the test has to be run from skia root. https://codereview.chromium.org/142173002/diff/60001/platform_tools/android/bin/gyp_to_android.py File ...
6 years, 11 months ago
(2014-01-22 19:32:50 UTC)
#5
Investigating a bug where the test has to be run from skia root.
https://codereview.chromium.org/142173002/diff/60001/platform_tools/android/b...
File platform_tools/android/bin/gyp_to_android.py (right):
https://codereview.chromium.org/142173002/diff/60001/platform_tools/android/b...
platform_tools/android/bin/gyp_to_android.py:416: return 0
On 2014/01/22 16:36:48, scroggo wrote:
> On 2014/01/21 20:00:51, epoger wrote:
> > How would main() ever return anything but 0?
>
> It would not. Removed.
D'oh! I thought I removed it. Removed in next patch.
https://codereview.chromium.org/142173002/diff/60001/tools/tests/gyp_to_andro...
File tools/tests/gyp_to_android_tests.py (right):
https://codereview.chromium.org/142173002/diff/60001/tools/tests/gyp_to_andro...
tools/tests/gyp_to_android_tests.py:84: path_to_android_mk =
os.path.join(skia_trunk, 'Android.mk')
On 2014/01/22 16:36:48, scroggo wrote:
> On 2014/01/21 20:00:51, epoger wrote:
> > I think it's dangerous for unittests to write into the real checkout. I
think
> > it would be much better to use
> > http://docs.python.org/2/library/tempfile.html#tempfile.mkdtemp to create a
> > temporary dir, and make gyp_to_android write into there (if possible).
>
> Done.
>
> For what it's worth, gyp_to_android calls gyp in a way that gyp writes into
> gyp/. I've tried changing it, but without changing gyp itself (which may be
> possible), or using python to copy and modify the gyp files, it will write
into
> gyp/ regardless.
Actually it wasn't so hard. In patch set 5 (and beyond), I copy the gyp files to
a new folder, so the gypd files are created in that file and later removed.
scroggo
On 2014/01/22 19:32:50, scroggo wrote: > Investigating a bug where the test has to be ...
6 years, 11 months ago
(2014-01-22 20:05:09 UTC)
#6
On 2014/01/22 19:32:50, scroggo wrote:
> Investigating a bug where the test has to be run from skia root.
Fixed in patch set 8.
epoger
Looking pretty good at patchset 8! A few final suggestions. https://codereview.chromium.org/142173002/diff/310001/platform_tools/android/bin/android_framework_gyp.py File platform_tools/android/bin/android_framework_gyp.py (right): https://codereview.chromium.org/142173002/diff/310001/platform_tools/android/bin/android_framework_gyp.py#newcode15 ...
6 years, 11 months ago
(2014-01-22 21:35:03 UTC)
#7
Issue 142173002: Add self tests for gyp_to_android.
(Closed)
Created 6 years, 11 months ago by scroggo
Modified 6 years, 11 months ago
Reviewers: djsollen, epoger
Base URL: https://skia.googlesource.com/skia.git@GYP2
Comments: 26