MCPcopy
hub / github.com/django/django / get_subprocess_args

Function get_subprocess_args

tests/runtests.py:424–441  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

422
423
424def get_subprocess_args(options):
425 subprocess_args = [sys.executable, __file__, "--settings=%s" % options.settings]
426 if options.failfast:
427 subprocess_args.append("--failfast")
428 if options.verbosity:
429 subprocess_args.append("--verbosity=%s" % options.verbosity)
430 if not options.interactive:
431 subprocess_args.append("--noinput")
432 if options.tags:
433 subprocess_args.append("--tag=%s" % options.tags)
434 if options.exclude_tags:
435 subprocess_args.append("--exclude_tag=%s" % options.exclude_tags)
436 if options.shuffle is not False:
437 if options.shuffle is None:
438 subprocess_args.append("--shuffle")
439 else:
440 subprocess_args.append("--shuffle=%s" % options.shuffle)
441 return subprocess_args
442
443
444def bisect_tests(bisection_label, options, test_labels, start_at, start_after):

Callers 2

bisect_testsFunction · 0.85
paired_testsFunction · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…