From 3f472cb42740811dfb0d86639f38e738c12ed235 Mon Sep 17 00:00:00 2001 From: Christian Henkel Date: Tue, 18 Jul 2023 13:32:53 +0200 Subject: [PATCH] changing the script name to what we had before Signed-off-by: Christian Henkel --- pyproject.toml | 2 +- test/systemtest/test_all_packages.py | 2 +- test/systemtest/test_documentation.py | 2 +- test/systemtest/test_license_per_repo.py | 2 +- test/systemtest/test_separate_pkgs.py | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e59aa50..93f1392 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,4 +40,4 @@ homepage = "https://github.com/boschresearch/ros_license_toolkit" repository = "https://github.com/boschresearch/ros_license_toolkit" [project.scripts] -ros-license-toolkit = "ros_license_toolkit.main:main" \ No newline at end of file +ros_license_toolkit = "ros_license_toolkit.main:main" \ No newline at end of file diff --git a/test/systemtest/test_all_packages.py b/test/systemtest/test_all_packages.py index 22b7dcf..c869b91 100644 --- a/test/systemtest/test_all_packages.py +++ b/test/systemtest/test_all_packages.py @@ -31,7 +31,7 @@ def test_all(self): Check that the output contains all package names. """ with subprocess.Popen( - ["ros-license-toolkit", "test/_test_data"], + ["ros_license_toolkit", "test/_test_data"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, ) as process: diff --git a/test/systemtest/test_documentation.py b/test/systemtest/test_documentation.py index 86b8974..f5f5b1e 100644 --- a/test/systemtest/test_documentation.py +++ b/test/systemtest/test_documentation.py @@ -29,7 +29,7 @@ class TestDocumentation(unittest.TestCase): def test_readme(self): """Check if the help text is up to date.""" with subprocess.Popen( - ["ros-license-toolkit", "-h"], + ["ros_license_toolkit", "-h"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, ) as process: diff --git a/test/systemtest/test_license_per_repo.py b/test/systemtest/test_license_per_repo.py index 73e09d9..c4fcad0 100644 --- a/test/systemtest/test_license_per_repo.py +++ b/test/systemtest/test_license_per_repo.py @@ -45,7 +45,7 @@ def _test_repo(self, repo_name, pkg_names, license_name): make_repo(repo_path) # test with subprocess.Popen( - ["ros-license-toolkit", repo_path], + ["ros_license_toolkit", repo_path], stdout=subprocess.PIPE, stderr=subprocess.PIPE ) as process: diff --git a/test/systemtest/test_separate_pkgs.py b/test/systemtest/test_separate_pkgs.py index 493f82a..3579034 100644 --- a/test/systemtest/test_separate_pkgs.py +++ b/test/systemtest/test_separate_pkgs.py @@ -39,7 +39,7 @@ def test_deep_package_folder(self): "test/_test_data/test_deep_package_folder/deeper/test_pkg_deep" ]: with subprocess.Popen( - ["ros-license-toolkit", call_path], + ["ros_license_toolkit", call_path], stdout=subprocess.PIPE, stderr=subprocess.PIPE, ) as process: @@ -105,7 +105,7 @@ def test_pkg_unknown_license(self): package.xml.""" # using subprocess.Popen instead of main() to capture stdout with subprocess.Popen( - ["ros-license-toolkit", + ["ros_license_toolkit", "test/_test_data/test_pkg_unknown_license"], stdout=subprocess.PIPE, stderr=subprocess.PIPE