Merge change 2967 into donut
* changes: Fixed issue where code for extracting scripts was eclipsed by runTest method.
This commit is contained in:
@@ -110,8 +110,8 @@ def main(options, args):
|
|||||||
# Call ReliabilityTestsAutoTest#startReliabilityTests
|
# Call ReliabilityTestsAutoTest#startReliabilityTests
|
||||||
test_cmd = (test_cmd_prefix + " -e class "
|
test_cmd = (test_cmd_prefix + " -e class "
|
||||||
"com.android.dumprendertree.ReliabilityTest#"
|
"com.android.dumprendertree.ReliabilityTest#"
|
||||||
"runTest -e timeout %d %s" %
|
"runReliabilityTest -e timeout %s %s" %
|
||||||
(timeout_ms, test_cmd_postfix))
|
(str(timeout_ms), test_cmd_postfix))
|
||||||
|
|
||||||
adb_output = subprocess.Popen(test_cmd, shell=True,
|
adb_output = subprocess.Popen(test_cmd, shell=True,
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
@@ -125,10 +125,6 @@ def main(options, args):
|
|||||||
crashed_tests.append(crashed_test)
|
crashed_tests.append(crashed_test)
|
||||||
logging.info("Resuming reliability test runner...")
|
logging.info("Resuming reliability test runner...")
|
||||||
|
|
||||||
test_cmd = (test_cmd_prefix + " -e class "
|
|
||||||
"com.android.dumprendertree.ReliabilityTest#"
|
|
||||||
"runTest -e timeout %d %s" %
|
|
||||||
(timeout_ms, test_cmd_postfix))
|
|
||||||
adb_output = subprocess.Popen(test_cmd, shell=True, stdout=subprocess.PIPE,
|
adb_output = subprocess.Popen(test_cmd, shell=True, stdout=subprocess.PIPE,
|
||||||
stderr=subprocess.PIPE).communicate()[0]
|
stderr=subprocess.PIPE).communicate()[0]
|
||||||
|
|
||||||
|
|||||||
@@ -30,8 +30,7 @@ public class ReliabilityTest extends ActivityInstrumentationTestCase2<Reliabilit
|
|||||||
super(PKG_NAME, ReliabilityTestActivity.class);
|
super(PKG_NAME, ReliabilityTestActivity.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
public void runReliabilityTest() throws Throwable {
|
||||||
protected void runTest() throws Throwable {
|
|
||||||
ReliabilityTestActivity activity = getActivity();
|
ReliabilityTestActivity activity = getActivity();
|
||||||
LayoutTestsAutoRunner runner = (LayoutTestsAutoRunner)getInstrumentation();
|
LayoutTestsAutoRunner runner = (LayoutTestsAutoRunner)getInstrumentation();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user