diff options
author | Simon Glass <sjg@chromium.org> | 2020-04-18 02:51:32 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-04-26 23:24:08 +0300 |
commit | 88daaef19f985b6ba2f9c0f62eed5378d6d40ebd (patch) | |
tree | db309a9f2f44d1e25fa2c96ced9e33a28e86fa75 /tools/buildman/func_test.py | |
parent | 97944d3f7d03c83274d34eccf6a380548a16f444 (diff) | |
download | u-boot-88daaef19f985b6ba2f9c0f62eed5378d6d40ebd.tar.xz |
buildman: Make sure that -o is given with -w
It is a bad idea to use the default output directory ('..') with -w since
it does a build in that directory and writes various files these.
Require that -o is given to avoid this problem.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/buildman/func_test.py')
-rw-r--r-- | tools/buildman/func_test.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/buildman/func_test.py b/tools/buildman/func_test.py index 1fbc6f6b00..8d3325d66f 100644 --- a/tools/buildman/func_test.py +++ b/tools/buildman/func_test.py @@ -569,3 +569,9 @@ class TestFunctional(unittest.TestCase): self._RunControl('-b', self._test_branch, '-o', self._output_dir, '-w', clean_dir=False, boards=board_list) self.assertIn("single commit", str(e.exception)) + + board_list = board.Boards() + board_list.AddBoard(board.Board(*boards[0])) + with self.assertRaises(SystemExit) as e: + self._RunControl('-w', clean_dir=False) + self.assertIn("specify -o", str(e.exception)) |