53
54
{'archive': False, 'dry_run': True, 'verbose': True},
54
55
ga_mock.call_args[1])
55
crossbuild = get_script()
56
crossbuild = get_crossbuild_script()
57
58
([crossbuild, 'win-client', '-b', '~/crossbuild',
58
59
'juju-core_1.2.3.tar.gz'], ),
59
60
rc_mock.call_args[0])
61
62
{'dry_run': True, 'verbose': True}, rc_mock.call_args[1])
63
'juju-setup-*.exe', 'juju-*-win2012-amd64.tgz',
64
'juju-*-osx.tar.gz', 'juju-*-centos7-amd64.tgz',
65
'juju-*-centos7.tar.gz']
66
self.assertEqual((work_dir, globs), aa_mock.call_args[0])
63
self.assertEqual((work_dir, ARTIFACT_GLOBS), aa_mock.call_args[0])
68
65
{'dry_run': True, 'verbose': True}, aa_mock.call_args[1])
70
def test_get_script(self):
67
def test_get_crossbuild_script(self):
72
69
'/foo/juju-release-tools/crossbuild.py',
73
get_script('/foo/juju-release-tools'))
70
get_crossbuild_script('/foo/juju-release-tools'))
74
71
parent_dir = os.path.realpath(
75
72
os.path.join(__file__, '..', '..', '..'))
77
74
os.path.join(parent_dir, 'juju-release-tools', 'crossbuild.py'),
75
get_crossbuild_script())