Bug 78582 - Finish implementing start_helper for ChromiumAndroidPort
Summary: Finish implementing start_helper for ChromiumAndroidPort
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Adam Barth
URL:
Keywords:
Depends on:
Blocks: 78524
  Show dependency treegraph
 
Reported: 2012-02-13 23:44 PST by Adam Barth
Modified: 2012-02-14 12:29 PST (History)
5 users (show)

See Also:


Attachments
Patch (4.48 KB, patch)
2012-02-13 23:46 PST, Adam Barth
no flags Details | Formatted Diff | Diff
Patch for landing (4.53 KB, patch)
2012-02-14 11:32 PST, Adam Barth
abarth: commit-queue+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Barth 2012-02-13 23:44:46 PST
Finish implementing start_helper for ChromiumAndroidPort
Comment 1 Adam Barth 2012-02-13 23:46:30 PST
Created attachment 126917 [details]
Patch
Comment 2 Eric Seidel (no email) 2012-02-14 09:22:22 PST
Comment on attachment 126917 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=126917&action=review

> Tools/Scripts/webkitpy/layout_tests/port/chromium_android.py:315
> +        except:
> +            # Reset to 1970-01-01 00:00:00 UTC.
> +            host_datetime = 0

I wonder if anyone has ever used this except: path... I doubt it works.  I'm not sure having an except here is helpful.

> Tools/Scripts/webkitpy/layout_tests/port/chromium_android.py:326
> +    def _run_adb_command(self, cmd, ignore_error=False):

IT seems ignore_error=true is never used.
Comment 3 Adam Barth 2012-02-14 10:09:04 PST
Comment on attachment 126917 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=126917&action=review

>> Tools/Scripts/webkitpy/layout_tests/port/chromium_android.py:315
>> +            host_datetime = 0
> 
> I wonder if anyone has ever used this except: path... I doubt it works.  I'm not sure having an except here is helpful.

Another question is whether we should be using os.popen at all rather than using Executive.  I'll probably switch it to executive before landing.

>> Tools/Scripts/webkitpy/layout_tests/port/chromium_android.py:326
>> +    def _run_adb_command(self, cmd, ignore_error=False):
> 
> IT seems ignore_error=true is never used.

It's used on the very next line in the if condition.
Comment 4 Dirk Pranke 2012-02-14 10:39:32 PST
Comment on attachment 126917 [details]
Patch



View in context: https://bugs.webkit.org/attachment.cgi?id=126917&action=review

Patch looks fine to me, just some editing of the comments ...

> Tools/Scripts/webkitpy/layout_tests/port/chromium_android.py:51
> +# FIXME: find a solution foe multi-core devices.

Nit: "for", not "foe".

> Tools/Scripts/webkitpy/layout_tests/port/chromium_android.py:63
> +FORWARD_PORTS = '8000 8080 8443 8880 9323'

These comments could use some grammatical editing as well.

As an aside, I didn't realize 9323 was being used for anything ...

> Tools/Scripts/webkitpy/layout_tests/port/chromium_android.py:208
> +        # Start the HTTP server for device to access test cases.

Nit: s/for device to access/so the device can access the/.

> Tools/Scripts/webkitpy/layout_tests/port/chromium_android.py:309
> +        # We need to make them synchronized, otherwise test may fail.

Nit: s/test/tests/ (or 'a test').
Comment 5 Adam Barth 2012-02-14 11:32:27 PST
Created attachment 127006 [details]
Patch for landing
Comment 6 Adam Barth 2012-02-14 12:29:20 PST
Committed r107725: <http://trac.webkit.org/changeset/107725>