Skip to contentSkip to conversation

buildman: Correct the testOutputDir() unit test

PATCH New Simon Glass 1 participant 2 messages Jul 19, 2020 – Jul 28, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 buildman: Correct the testOutputDir() unit test

This current fails with an error. Fix it.

Fixes 7664b03ffc5 ("buildman: Remove _of_#_ from results directory paths")

---

 tools/buildman/test.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
tools/buildman/test.py +1 -2
index 82d25cfcaa..3eaba07559 100644
@@ -541,8 +541,7 @@ class TestBuild(unittest.TestCase):
         build.commits = self.commits
         build.commit_count = len(self.commits)
         subject = self.commits[1].subject.translate(builder.trans_valid_chars)
-        dirname ='/%02d_g%s_%s' % (2, build.commit_count, commits[1][0],
-                                           subject[:20])
+        dirname ='/%02d_g%s_%s' % (2, commits[1][0], subject[:20])
         self.CheckDirs(build, dirname)
 
     def testOutputDirCurrent(self):
Signature · 1 line
2.28.0.rc0.105.gf9edc3c819-goog
#1 lore raw

PATCH 1/1 buildman: Correct the testOutputDir() unit test

This current fails with an error. Fix it.

Fixes 7664b03ffc5 ("buildman: Remove _of_#_ from results directory paths")

---

 tools/buildman/test.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Applied to u-boot-dm, thanks!