|
|
@ -36,16 +36,14 @@ def main():
|
|
|
|
if not args:
|
|
|
|
if not args:
|
|
|
|
# Default to running all tests
|
|
|
|
# Default to running all tests
|
|
|
|
test_path = 'test'
|
|
|
|
test_path = 'test'
|
|
|
|
module_path = 'yt_dlp,devscripts'
|
|
|
|
module_path = 'yt_dlp'
|
|
|
|
elif len(args) == 1:
|
|
|
|
elif len(args) == 1:
|
|
|
|
test_path = args[0]
|
|
|
|
test_path = args[0]
|
|
|
|
# Try to guess the module path from the test path
|
|
|
|
# Try to guess the module path from the test path
|
|
|
|
if test_path.startswith('test/devscripts'):
|
|
|
|
if test_path.startswith('test/'):
|
|
|
|
module_path = 'devscripts'
|
|
|
|
|
|
|
|
elif test_path.startswith('test/'):
|
|
|
|
|
|
|
|
module_path = 'yt_dlp'
|
|
|
|
module_path = 'yt_dlp'
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
module_path = 'yt_dlp,devscripts'
|
|
|
|
module_path = 'yt_dlp'
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
test_path = args[0]
|
|
|
|
test_path = args[0]
|
|
|
|
module_path = args[1]
|
|
|
|
module_path = args[1]
|
|
|
|