Allow test.py to run from within a build/ dir.

This commit is contained in:
Unknown W. Brackets committed 2013-11-03 01:03:57 -07:00
1 parent d41acebb3d
commit 587ba7cd5f
1 file changed
+6 -3
+6 -3
View File
@@ -282,10 +282,13 @@ tests_ignored = [
def init():
global PPSSPP_EXE
global PPSSPP_EXE, TEST_ROOT
if not os.path.exists("pspautotests"):
print("Please run git submodule init; git submodule update;")
sys.exit(1)
if os.path.exists(os.path.dirname(__file__) + "/pspautotests"):
TEST_ROOT = os.path.dirname(__file__) + "/pspautotests/tests/";
else:
print("Please run git submodule init; git submodule update;")
sys.exit(1)
if not os.path.exists(TEST_ROOT + "cpu/cpu_alu/cpu_alu.prx"):
print("Please install the pspsdk and run make in common/ and in all the tests")