CTS not executing for package: android.nativemedia.sl

592 views
Skip to first unread message

Slavik Kuper

unread,
Jun 25, 2013, 1:03:04 PM6/25/13
to android-...@googlegroups.com
Hello. I'm trying to run 4.1_r3 CTS package: android.nativemedia.sl for a device compiled from AOSP 4.1.2 but I face the following error:

06-25 19:49:51 I/0123456789ABCDEF: Test package android.nativemedia.sl started
06-25 19:49:51 I/0123456789ABCDEF: -----------------------------------------
06-25 19:49:51 E/GeeTest: Could not create directory for native tests: /data/local/tmp/cts-native-tests
06-25 19:49:51 E/GeeTest: Failed to install native tests
06-25 19:49:51 I/0123456789ABCDEF: Saved log device_logcat_2169468525722273901.zip
06-25 19:49:51 I/0123456789ABCDEF: Saved log host_log_223826438823235209.zip
06-25 19:49:51 I/0123456789ABCDEF: android.nativemedia.sl package complete: Passed 0, Failed 0, Not Executed 9

If I manually(using adb shell) create the /data/local/tmp/cts-native-tests directory including changing permissions to 777 in all path chain. I get a different error:

06-25 19:57:46 I/0123456789ABCDEF: Test package android.nativemedia.sl started
06-25 19:57:46 I/0123456789ABCDEF: -----------------------------------------
06-25 19:57:46 E/ddms: transfer error: Read-only file system
06-25 19:57:54 E/ddms: transfer error: Read-only file system
06-25 19:58:05 E/ddms: transfer error: Read-only file system
06-25 19:58:15 I/0123456789ABCDEF: Saved log device_logcat_9159387079637378325.zip
06-25 19:58:18 I/0123456789ABCDEF: Saved log host_log_4841389639980849923.zip
06-25 19:58:18 I/0123456789ABCDEF: android.nativemedia.sl package complete: Passed 0, Failed 0, Not Executed 9

I also tried to strace adbd, and look at the logcat but couldn't find anything of use. What else can I try?



Slavik Kuper

unread,
Jul 1, 2013, 5:28:21 AM7/1/13
to android-...@googlegroups.com
OK. I'll share how I solved it by answering myself.

The tries to push : 'NativeMediaTest_SL' file to /data/local/tmp/cts-native-tests
But for some reason, CTS code uses FILE class to build the string and then get its path, actually push :
'/data/local/tmp/cts-native-tests/NativeMediaTest_SL' to '/'.

So my Windows JVM changes the path so slashes become backslashes and the push fails.
Reply all
Reply to author
Forward
0 new messages