From 8cd303aec6f11ea9fece70f6e3d82efb607f8637 Mon Sep 17 00:00:00 2001 From: Guang Zhu Date: Mon, 22 Feb 2010 16:16:24 -0800 Subject: [PATCH] Quick fix layout test path problems SD card mount point has changed from /sdcard to /mnt/sdcard. layout test was calling getCanonicalPath to determine the path to the test case, which causes problem because /sdcard is now a symlink, and canonical path is actually the "real" path. Using quick dirty fix for now, will properly migrate any hard-coded reference to "/sdcard" to system function calls. --- .../dumprendertree/LayoutTestsAutoTest.java | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoTest.java b/tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoTest.java index 8983612ed8cfc..634d6831af3db 100644 --- a/tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoTest.java +++ b/tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoTest.java @@ -339,14 +339,7 @@ public class LayoutTestsAutoTest extends ActivityInstrumentationTestCase2(); // Read settings - try { - this.mTestPathPrefix = - (new File(LAYOUT_TESTS_ROOT + runner.mTestPath)).getCanonicalPath(); - } catch (IOException e) { - Log.e(LOGTAG, "Cannot find test path prefix: " + e.getMessage()); - return; - } - + this.mTestPathPrefix = (new File(LAYOUT_TESTS_ROOT + runner.mTestPath)).getAbsolutePath(); this.mRebaselineResults = runner.mRebaseline; int timeout = runner.mTimeoutInMillis; @@ -395,11 +388,7 @@ public class LayoutTestsAutoTest extends ActivityInstrumentationTestCase2