X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Fdiscover_tests.py;h=0eaa149d0db2fd41cffbaa414756c813c18aa980;hb=5c801b362a536fcae704c50bf1573362d372bb3c;hp=fbd2d9c7e59b77f64b93410c8893231a9d5f0408;hpb=005a3331809a4d071bd2a44895fb1a9a800a09f5;p=vpp.git diff --git a/test/discover_tests.py b/test/discover_tests.py index fbd2d9c7e59..0eaa149d0db 100755 --- a/test/discover_tests.py +++ b/test/discover_tests.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import sys import os @@ -39,17 +39,3 @@ def discover_tests(directory, callback): def print_callback(file_name, cls, method): print("%s.%s.%s" % (file_name, cls.__name__, method)) - - -if __name__ == '__main__': - parser = argparse.ArgumentParser(description="Discover VPP unit tests") - parser.add_argument("-d", "--dir", action='append', type=str, - help="directory containing test files " - "(may be specified multiple times)") - args = parser.parse_args() - if args.dir is None: - args.dir = "." - - suite = unittest.TestSuite() - for d in args.dir: - discover_tests(d, print_callback)