Fix running single frontend tests using just the test-names.

(imported from commit 0b93abc0379b0a2ec900fe317843a7839258f7a9)
This commit is contained in:
Tim Abbott 2015-09-19 15:51:17 -07:00
parent 7f8ef32704
commit 36445d1576
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ parser.add_option('--remote-debug',
test_files = [] test_files = []
for file in args: for file in args:
if not os.path.exists(file): if not os.path.exists(file):
file = os.path.join(os.path.dirname(__file__), 'tests', file) file = os.path.join(os.path.dirname(__file__), '../zerver/tests/frontend/tests', file)
test_files.append(os.path.abspath(file)) test_files.append(os.path.abspath(file))
os.chdir(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../..')) os.chdir(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../..'))