Closed Bug 807201 Opened 12 years ago Closed 12 years ago

xpcshell-tests-remote via sut fails: "Error finding end of line/return value"

Categories

(Testing :: General, defect)

x86
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 817235

People

(Reporter: gbrown, Assigned: gbrown)

References

Details

Result of: make -C toolkit/mozapps/extensions/test xpcshell-tests-remote make: Entering directory `/home/mozdev/src/objdir-native-droid/toolkit/mozapps/extensions/test' /home/mozdev/src/objdir-native-droid/_virtualenv/bin/python -u /home/mozdev/src/config/pythonpath.py \ -I/home/mozdev/src/build \ -I/home/mozdev/src/build/mobile \ -I/home/mozdev/src/testing/mozbase/mozdevice/mozdevice \ /home/mozdev/src/testing/xpcshell/remotexpcshelltests.py \ --symbols-path=../../../../dist/crashreporter-symbols \ --build-info-json=../../../../mozinfo.json \ \ --dm_trans=sut \ --deviceIP=192.168.0.131 \ --objdir=../../../.. \ ../../../../_tests/xpcshell/toolkit/mozapps/extensions/test/xpcshell ../../../../_tests/xpcshell/toolkit/mozapps/extensions/test/xpcshell-unpack using APK: ../../../../dist/fennec-19.0a1.en-US.android-arm.apk Pushing libfreebl3.so.. Pushing libsmime3.so.. Pushing libmozsqlite3.so.. Pushing libnss3.so.. Pushing libnssckbi.so.. Pushing libxul.so.. This is a big file, it could take a while. Pushing libnspr4.so.. Pushing libsoftokn3.so.. Pushing libxpcom.so.. Pushing libnssutil3.so.. Pushing libplds4.so.. Pushing libmozalloc.so.. Pushing libplc4.so.. Pushing libssl3.so.. pushing directory: ../../../../_tests/xpcshell to /mnt/sdcard/tests/xpcshell TEST-INFO | skipping /home/mozdev/src/objdir-native-droid/_tests/xpcshell/toolkit/mozapps/extensions/test/xpcshell/test_AddonRepository.js | skip-if: os == "android" TEST-INFO | skipping /home/mozdev/src/objdir-native-droid/_tests/xpcshell/toolkit/mozapps/extensions/test/xpcshell/test_AddonRepository_cache.js | skip-if: os == "android" TEST-INFO | skipping /home/mozdev/src/objdir-native-droid/_tests/xpcshell/toolkit/mozapps/extensions/test/xpcshell/test_AddonRepository_compatmode.js | skip-if: os == "android" TEST-INFO | /home/mozdev/src/objdir-native-droid/_tests/xpcshell/toolkit/mozapps/extensions/test/xpcshell/test_LightweightThemeManager.js | running test ... Traceback (most recent call last): File "/home/mozdev/src/config/pythonpath.py", line 56, in <module> main(sys.argv[1:]) File "/home/mozdev/src/config/pythonpath.py", line 48, in main execfile(script, frozenglobals) File "/home/mozdev/src/testing/xpcshell/remotexpcshelltests.py", line 376, in <module> main() File "/home/mozdev/src/testing/xpcshell/remotexpcshelltests.py", line 371, in main **options.__dict__): File "/home/mozdev/src/testing/xpcshell/runxpcshelltests.py", line 798, in runTests stdout=pStdout, stderr=pStderr, env=self.env, cwd=testdir) File "/home/mozdev/src/testing/xpcshell/remotexpcshelltests.py", line 229, in launchProcess self.shellReturnCode = self.device.shell(cmd, f, cwd=self.remoteHere, env=env) File "/home/mozdev/src/testing/mozbase/mozdevice/mozdevice/devicemanagerSUT.py", line 329, in shell raise DMError("Automation Error: Error finding end of line/return value when running '%s'" % cmdline) devicemanager.DMError: Automation Error: Error finding end of line/return value when running '"GRE_HOME=/data/data/org.mozilla.fennec_mozdev,XPCSHELL_TEST_PROFILE_DIR=/mnt/sdcard/tests/xpcshell/p,HOME=/mnt/sdcard/tests/xpcshell/p,MOZ_LINKER_CACHE=/mnt/sdcard/tests/xpcshell/b,LD_LIBRARY_PATH=/mnt/sdcard/tests/xpcshell/b,TMPDIR=/mnt/sdcard/tests/xpcshell/tmp" /mnt/sdcard/tests/xpcshell/b/xpcshell -r /mnt/sdcard/tests/xpcshell/c/httpd.manifest --greomni /mnt/sdcard/tests/xpcshell/b/fennec-19.0a1.en-US.android-arm.apk -s -e 'const _HTTPD_JS_PATH = "/mnt/sdcard/tests/xpcshell/c/httpd.js";' -e 'const _HEAD_JS_PATH = "/mnt/sdcard/tests/xpcshell/head.js";' -f /mnt/sdcard/tests/xpcshell/head.js -e 'const _SERVER_ADDR = "localhost"' -e 'const _HEAD_FILES = ["/mnt/sdcard/tests/xpcshell/toolkit/mozapps/extensions/test/xpcshell/head_addons.js"];' -e 'const _TAIL_FILES = [];' -e 'const _TEST_FILE = ["test_LightweightThemeManager.js"];' -e '_execute_test(); quit(0);'' make: *** [xpcshell-tests-remote] Error 1 make: Leaving directory `/home/mozdev/src/objdir-native-droid/toolkit/mozapps/extensions/test'
Blocks: 799863
this would be nice to have logcat information for.
Indeed, logcat illuminates: 01-01 18:21:55.096 I/SUTAgentAndroid( 1527): 192.168.0.86 : execcwd /mnt/sdcard/tests/xpcshell/toolkit/mozapps/extensions/test/xpcshell "GRE_HOME=/data/data/org.mozilla.fennec_mozdev,XPCSHELL_TEST_PROFILE_DIR=/mnt/sdcard/tests/xpcshell/p,HOME=/mnt/sdcard/tests/xpcshell/p,MOZ_LINKER_CACHE=/mnt/sdcard/tests/xpcshell/b,LD_LIBRARY_PATH=/mnt/sdcard/tests/xpcshell/b,TMPDIR=/mnt/sdcard/tests/xpcshell/tmp" /mnt/sdcard/tests/xpcshell/b/xpcshell -r /mnt/sdcard/tests/xpcshell/c/httpd.manifest --greomni /mnt/sdcard/tests/xpcshell/b/fennec-19.0a1.en-US.android-arm.apk -s -e 'const _HTTPD_JS_PATH = "/mnt/sdcard/tests/xpcshell/c/httpd.js";' -e 'const _HEAD_JS_PATH = "/mnt/sdcard/tests/xpcshell/head.js";' -f /mnt/sdcard/tests/xpcshell/head.js -e 'const _SERVER_ADDR = "localhost"' -e 'const _HEAD_FILES = ["/mnt/sdcard/tests/xpcshell/toolkit/mozapps/extensions/test/xpcshell/head_addons.js"];' -e 'const _TAIL_FILES = [];' -e 'const _TEST_FILE = ["test_LightweightThemeManager.js"];' -e '_execute_test(); quit(0);' 01-01 18:21:55.106 W/System.err( 1527): java.io.IOException: Error running exec(). Command: [/mnt/sdcard/tests/xpcshell/b/xpcshell, -r, /mnt/sdcard/tests/xpcshell/c/httpd.manifest, --greomni, /mnt/sdcard/tests/xpcshell/b/fennec-19.0a1.en-US.android-arm.apk, -s, -e, const _HTTPD_JS_PATH = "/mnt/sdcard/tests/xpcshell/c/httpd.js";, -e, const _HEAD_JS_PATH = "/mnt/sdcard/tests/xpcshell/head.js";, -f, /mnt/sdcard/tests/xpcshell/head.js, -e, const _SERVER_ADDR = "localhost", -e, const _HEAD_FILES = ["/mnt/sdcard/tests/xpcshell/toolkit/mozapps/extensions/test/xpcshell/head_addons.js"];, -e, const _TAIL_FILES = [];, -e, const _TEST_FILE = ["test_LightweightThemeManager.js"];, -e, _execute_test(); quit(0);] Working Directory: /mnt/sdcard/tests/xpcshell/toolkit/mozapps/extensions/test/xpcshell Environment: [ANDROID_SOCKET_zygote=10, ANDROID_BOOTLOGO=1, EXTERNAL_STORAGE=/mnt/sdcard, ANDROID_ASSETS=/system/app, ASEC_MOUNTPOINT=/mnt/asec, PATH=/sbin:/system/sbin:/system/bin:/system/xbin, ANDROID_DATA=/data, BOOTCLASSPATH=/system/framework/core.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/com.nvidia.graphics.jar, ANDROID_PROPERTY_WORKSPACE=9,32768, ANDROID_ROOT=/system, LD_LIBRARY_PATH=/mnt/sdcard/tests/xpcshell/b, HOME=/mnt/sdcard/tests/xpcshell/p, TMPDIR=/mnt/sdcard/tests/xpcshell/tmp, MOZ_LINKER_CACHE=/mnt/sdcard/tests/xpcshell/b, XPCSHELL_TEST_PROFILE_DIR=/mnt/sdcard/tests/xpcshell/p, GRE_HOME=/data/data/org.mozilla.fennec_mozdev] 01-01 18:21:55.106 W/System.err( 1527): at java.lang.ProcessManager.exec(ProcessManager.java:226) 01-01 18:21:55.106 W/System.err( 1527): at java.lang.Runtime.exec(Runtime.java:196) 01-01 18:21:55.106 W/System.err( 1527): at com.mozilla.SUTAgentAndroid.service.DoCommand.StartPrg2(DoCommand.java:3717) 01-01 18:21:55.106 W/System.err( 1527): at com.mozilla.SUTAgentAndroid.service.DoCommand.processCommand(DoCommand.java:725) 01-01 18:21:55.106 W/System.err( 1527): at com.mozilla.SUTAgentAndroid.service.CmdWorkerThread.run(CmdWorkerThread.java:141) 01-01 18:21:55.106 W/System.err( 1527): Caused by: java.io.IOException: Permission denied 01-01 18:21:55.116 W/System.err( 1527): at java.lang.ProcessManager.exec(Native Method) 01-01 18:21:55.116 W/System.err( 1527): at java.lang.ProcessManager.exec(ProcessManager.java:224) 01-01 18:21:55.116 W/System.err( 1527): ... 4 more sutAgent is using /sdcard/tests (even when /data/local/tests has been created) and then tries to execute xpcshell from /sdcard/... This is a known problem: We cannot set execute permissions on files on /sdcard.
Assignee: nobody → gbrown
Depends on: 810347
This is really the same problem as bugs 810347 and 817235 and will be resolved by those bugs.
Status: NEW → RESOLVED
Closed: 12 years ago
No longer depends on: 810347
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.