summaryrefslogtreecommitdiff
path: root/tools/buildman/func_test.py
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2018-05-16 17:32:59 -0400
committerTom Rini <trini@konsulko.com>2018-05-16 17:32:59 -0400
commit00ef2cd6c7bcad475522e047105f41174fceb2af (patch)
treeaac7158caefeeaac15df5442bf5daff56c666777 /tools/buildman/func_test.py
parentf2d0f5e7ab3b8a7b4bf6e2ac499b4867c701d52d (diff)
parentf717b4c8e7fc871573755a05be96c8ef857eabce (diff)
Merge git://git.denx.de/u-boot-dm
Diffstat (limited to 'tools/buildman/func_test.py')
-rw-r--r--tools/buildman/func_test.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/buildman/func_test.py b/tools/buildman/func_test.py
index 8d96c1a94d..9206fb299d 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'))