diff options
Diffstat (limited to 'tools/buildman/func_test.py')
| -rw-r--r-- | tools/buildman/func_test.py | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/tools/buildman/func_test.py b/tools/buildman/func_test.py index 8d96c1a94da..9206fb299d4 100644 --- a/tools/buildman/func_test.py +++ b/tools/buildman/func_test.py @@ -519,3 +519,12 @@ class TestFunctional(unittest.TestCase):          self._RunControl('-b', self._test_branch, clean_dir=False)          self.assertEqual(self._builder.count, self._total_builds)          self.assertEqual(self._builder.fail, 0) + +    def testBadOutputDir(self): +        """Test building with an output dir the same as out current dir""" +        self._test_branch = '/__dev/__testbranch' +        with self.assertRaises(SystemExit): +            self._RunControl('-b', self._test_branch, '-o', os.getcwd()) +        with self.assertRaises(SystemExit): +            self._RunControl('-b', self._test_branch, '-o', +                             os.path.join(os.getcwd(), 'test')) | 
