mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Allow test.py to run from within a build/ dir.
This commit is contained in:
1 parent
d41acebb3d
commit
587ba7cd5f
1 file changed
+6
-3
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user