diff options
author | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-03-19 19:24:10 +0000 |
---|---|---|
committer | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-03-20 09:38:42 +0000 |
commit | 7ce5dcfc813bc3bc94125429a7c44e24d2147c36 (patch) | |
tree | d6bc12571009cd2f500c7d3e694b5b8c78716e6a | |
parent | d5aa6720431db86ce429719f86b4b18ab786aa58 (diff) | |
download | buildstream-7ce5dcfc813bc3bc94125429a7c44e24d2147c36.tar.gz |
tests:lint: fix all redefined-outer-name errors
-rw-r--r-- | tests/external_plugins.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/external_plugins.py b/tests/external_plugins.py index c000cfa8a..50b016b74 100644 --- a/tests/external_plugins.py +++ b/tests/external_plugins.py @@ -42,9 +42,9 @@ class ExternalPluginRepo(): def install(self): subprocess.run(['pip3', 'install', self._clone_location]) - def test(self, pytest_args): + def test(self, args): test_files = self._match_test_patterns() - return pytest.main(pytest_args + test_files) + return pytest.main(args + test_files) def _match_test_patterns(self): match_list = [] @@ -59,15 +59,15 @@ class ExternalPluginRepo(): return match_list -def run_repo_tests(repo, tmpdir, pytest_args): - print("Cloning repo {} to {}...".format(repo.name, tmpdir)) - repo.clone(tmpdir) +def run_repo_tests(repo, tempdir, args): + print("Cloning repo {} to {}...".format(repo.name, tempdir)) + repo.clone(tempdir) print("Installing {}...".format(repo.name)) repo.install() print("Testing {}...".format(repo.name)) - return repo.test(pytest_args) + return repo.test(args) if __name__ == "__main__": |