From abcc41611ec4aab93f8fd941c5ca96cec10c33b3 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Wed, 25 Jan 2017 14:12:34 -0800 Subject: [PATCH] Use a binary which works on windows --- tests/repository_test.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/repository_test.py b/tests/repository_test.py index e913df73..ee03ccef 100644 --- a/tests/repository_test.py +++ b/tests/repository_test.py @@ -550,14 +550,16 @@ def test_additional_golang_dependencies_installed( path = make_repo(tempdir_factory, 'golang_hooks_repo') config = make_config_from_repo(path) # A small go package - config['hooks'][0]['additional_dependencies'] = ['github.com/firba1/tpol'] + deps = ['github.com/golang/example/hello'] + config['hooks'][0]['additional_dependencies'] = deps repo = Repository.create(config, store) repo.require_installed() binaries = os.listdir(repo.cmd_runner.path( - helpers.environment_dir(golang.ENVIRONMENT_DIR, 'default'), - 'bin', + helpers.environment_dir(golang.ENVIRONMENT_DIR, 'default'), 'bin', )) - assert 'tpol' in binaries + # normalize for windows + binaries = [os.path.splitext(binary)[0] for binary in binaries] + assert 'hello' in binaries def test_reinstall(tempdir_factory, store, log_info_mock):