Skip to content

Commit b9c953c

Browse files
wangnuannuannashif
authored andcommitted
twister: add 12 hexadecimal digits to version
With the earlier version of Git, git describe command will use the default 7 hexadecimal digits as the abbreviated object name. But currently the Linux kernel project needs 11 to 12 hexdigits to stay unique.So it's necessary to add --abbrev=12 to ensure twister always generate the same tags. In https://testing.zephyrproject.org/daily_tests/versions.json, all tags have 10 hexadecimal digits. Signed-off-by: Jingru Wang <[email protected]>
1 parent 7cc84af commit b9c953c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/pylib/twister/twisterlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2580,7 +2580,7 @@ def __init__(self, board_root_list=[], testcase_roots=[], outdir=None):
25802580

25812581
def check_zephyr_version(self):
25822582
try:
2583-
subproc = subprocess.run(["git", "describe"],
2583+
subproc = subprocess.run(["git", "describe", "--abbrev=12"],
25842584
stdout=subprocess.PIPE,
25852585
universal_newlines=True,
25862586
cwd=ZEPHYR_BASE)

0 commit comments

Comments
 (0)