]> git.dujemihanovic.xyz Git - u-boot.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)
commit7664b03ffc51fa7563969c61fa28bf656af441bd
treea68a1c96864a566d598924ab39264185319ba9d5
parent96daa41aab97f87f1a7b2d8bf00ee546db2ca156
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