From: Steve Baker Date: Sun, 5 May 2013 22:53:56 +0000 (+1200) Subject: Give each cli its own test. X-Git-Tag: 2014.1~643^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=f149434edaf61158fcef74c5680fb425a5806a8e;p=openstack-build%2Fheat-build.git Give each cli its own test. This will give a nicer failure message, and results in 3 slowish tests instead of 1 really slow one. Change-Id: I5c3fbd2507068908c165e163b8f458bf8cb00bc1 --- diff --git a/heat/tests/test_cli.py b/heat/tests/test_cli.py index 934bfdf5..adb37d62 100644 --- a/heat/tests/test_cli.py +++ b/heat/tests/test_cli.py @@ -23,10 +23,16 @@ basepath = os.path.join(heat.__path__[0], os.path.pardir) class CliTest(unittest.TestCase): - def test_bins(self): - bins = ['heat-cfn', 'heat-boto', 'heat-watch'] + def test_heat_cfn(self): + self.bin_test_run('heat-cfn') - for bin in bins: + def test_heat_boto(self): + self.bin_test_run('heat-boto') + + def test_heat_watch(self): + self.bin_test_run('heat-watch') + + def bin_test_run(self, bin): fullpath = basepath + '/bin/' + bin proc = subprocess.Popen(fullpath,