]> git.baikalelectronics.ru Git - uboot.git/commit
buildman: Remove _of_#_ from results directory paths
authorOvidiu Panait <ovidiu.panait@windriver.com>
Fri, 15 May 2020 06:30:12 +0000 (09:30 +0300)
committerSimon Glass <sjg@chromium.org>
Fri, 12 Jun 2020 02:52:11 +0000 (20:52 -0600)
commit04e14a863864f4637ca66160ff70ddbce9d335fb
treea68a1c96864a566d598924ab39264185319ba9d5
parent505fd6d094ac7624d0214c902d62e0150696cda5
buildman: Remove _of_#_ from results directory paths

Currently, the following scenario will rebuild the first commit even
though it is not really necessary - the commit sha or the position in the
patchset did not change:

$ git am <local-patch-0001>
$ tools/buildman/buildman -P -E -W -b master mx6
<do some more development work>
$ git am <local-patch-0002>
$ tools/buildman/buildman -P -E -W -b master mx6 <- will rebuild the first
    commit as well, even
    though nothing has
    changed about it.

This is due to the fact that previous results directories get removed
when the number of commits change. By removing the _of_#_ part of the
directory path, the commits will be rebuilt only if the commit sha or the
position in the patchset changes. Also, update the testcase to reflect this
change.

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
tools/buildman/builder.py
tools/buildman/test.py