From f149434edaf61158fcef74c5680fb425a5806a8e Mon Sep 17 00:00:00 2001 From: Steve Baker Date: Mon, 6 May 2013 10:53:56 +1200 Subject: [PATCH] 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 --- heat/tests/test_cli.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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, -- 2.45.2