From: Simon Glass Date: Sat, 18 Apr 2020 00:08:57 +0000 (-0600) Subject: dtoc: Rename the main module X-Git-Tag: v2020.10~256^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d25fe2d952dd66d0f6c3f0dfdd4303e85d65333;p=platform%2Fkernel%2Fu-boot.git dtoc: Rename the main module Python does not like the module name being the same as the module directory. To allow dtoc modules to be used from other tools, rename it. Signed-off-by: Simon Glass --- diff --git a/tools/dtoc/dtoc b/tools/dtoc/dtoc index 896ca44..11a5d8e 120000 --- a/tools/dtoc/dtoc +++ b/tools/dtoc/dtoc @@ -1 +1 @@ -dtoc.py \ No newline at end of file +main.py \ No newline at end of file diff --git a/tools/dtoc/dtoc.py b/tools/dtoc/main.py similarity index 98% rename from tools/dtoc/dtoc.py rename to tools/dtoc/main.py index 8e05b43..b1eee21 100755 --- a/tools/dtoc/dtoc.py +++ b/tools/dtoc/main.py @@ -77,7 +77,7 @@ def run_tests(args): def RunTestCoverage(): """Run the tests and check that we get 100% coverage""" sys.argv = [sys.argv[0]] - test_util.RunTestCoverage('tools/dtoc/dtoc.py', '/dtoc.py', + test_util.RunTestCoverage('tools/dtoc/dtoc', '/main.py', ['tools/patman/*.py', '*/fdt*', '*test*'], options.build_dir)