OSDN Git Service

Fix tests on jenkins
authorDeepanshu Gupta <deepanshu@google.com>
Wed, 7 Jan 2015 01:32:26 +0000 (17:32 -0800)
committerDeepanshu Gupta <deepanshu@google.com>
Wed, 7 Jan 2015 01:32:26 +0000 (17:32 -0800)
commit48603a39d4dd721d231c99e10908f4f00c4ec6b9
tree904da4721e6419a8867227eea1d0d0c37ab79304
parentdc649c8da46dc1cc2ac7df41ddde0f28c64db687
Fix tests on jenkins

When the tests are run on the build server, they are run from the jar,
as opposed to the extracted build, which is default when run from an
IDE. Thus, when class.getResourceAsStream() is called with ".." in the
path, it is not resolved properly. This change explicitly resolves the
relative path, so that the test is run properly on the server.

Change-Id: Ib5fabd617dca4052220e5173a8bf4fb4234254ff
tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/Main.java