Skip to content

Commit 8a1cfd0

Browse files
committed
Fix running build.py for testing only
When build.py is run just to perform tests, the repository path is not necessarily specified, so we should not rely on it.
1 parent 1e84feb commit 8a1cfd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,11 +350,11 @@ def main() -> int:
350350
run_or_skip(cfg, Action.PREPARE,
351351
lambda: prepare_repositories(cfg, version),
352352
'source code checkout')
353-
version.poplulate_commits(cfg.repos_dir)
354353
build_all(cfg)
355354
run_tests(cfg)
356355

357356
def do_package():
357+
version.poplulate_commits(cfg.repos_dir)
358358
package.write_version_file(cfg, version)
359359
package.copy_samples(cfg)
360360
package.package_toolchain(cfg)

0 commit comments

Comments
 (0)