diff options
author | Simon Glass <sjg@chromium.org> | 2014-12-01 17:33:55 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-01-14 21:16:52 -0800 |
commit | 5971ab5c44cb0c32c88fcdc90a3a9b6430463c4c (patch) | |
tree | 503e0311df4db18ff0148152c4e073fc705c9635 /tools/buildman/test.py | |
parent | 2a9e2c6a0962cb04a12d833cc5c1c0920fa3b4f5 (diff) | |
download | u-boot-imx-5971ab5c44cb0c32c88fcdc90a3a9b6430463c4c.zip u-boot-imx-5971ab5c44cb0c32c88fcdc90a3a9b6430463c4c.tar.gz u-boot-imx-5971ab5c44cb0c32c88fcdc90a3a9b6430463c4c.tar.bz2 |
buildman: Add an option to flatten output directory trees
When building current source for a single board, buildman puts the output
in <output_dir>/current/current/<board>. Add an option to make it use
<output_dir>/<board> instead. This removes the unnecessary directories
in that case, controlled by the --no-subdirs/-N option.
Suggested-by: Tom Rini <trini@ti.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/buildman/test.py')
-rw-r--r-- | tools/buildman/test.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/buildman/test.py b/tools/buildman/test.py index f16d2fd..c085d2f 100644 --- a/tools/buildman/test.py +++ b/tools/buildman/test.py @@ -373,5 +373,13 @@ class TestBuild(unittest.TestCase): build.commit_count = 0 self.CheckDirs(build, '/current') + def testOutputDirNoSubdirs(self): + build = builder.Builder(self.toolchains, BASE_DIR, None, 1, 2, + checkout=False, show_unknown=False, + no_subdirs=True) + build.commits = None + build.commit_count = 0 + self.CheckDirs(build, '') + if __name__ == "__main__": unittest.main() |