To prepapre to run the scripts per branch, pass the branchname to the scripts.
Signed-off-by: Richard Purdie <richard.pur...@linuxfoundation.org> --- config.json | 4 ++-- scripts/run-cvecheck | 1 + scripts/run-patchmetrics | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config.json b/config.json index f225148..0c35632 100644 --- a/config.json +++ b/config.json @@ -1209,11 +1209,11 @@ ], "step1" : { "shortname" : "Generating patch metrics", - "EXTRACMDS" : ["../../yocto-autobuilder-helper/scripts/run-patchmetrics ../ ../meta/ ${HELPERRESULTSDIR}/../../patchmetrics ."] + "EXTRACMDS" : ["../../yocto-autobuilder-helper/scripts/run-patchmetrics ../ ../meta/ ${HELPERRESULTSDIR}/../../patchmetrics . ${HELPERBRANCHNAME}"] }, "step2" : { "shortname" : "Running CVE checks", - "EXTRACMDS" : ["../../yocto-autobuilder-helper/scripts/run-cvecheck ../ ../meta/ ${HELPERRESULTSDIR}/../../patchmetrics ."] + "EXTRACMDS" : ["../../yocto-autobuilder-helper/scripts/run-cvecheck ../ ../meta/ ${HELPERRESULTSDIR}/../../patchmetrics . ${HELPERBRANCHNAME}"] } }, diff --git a/scripts/run-cvecheck b/scripts/run-cvecheck index 35c796b..d48fd68 100755 --- a/scripts/run-cvecheck +++ b/scripts/run-cvecheck @@ -6,6 +6,7 @@ PARENTDIR=`realpath $1` TARGETDIR=`realpath $2` RESULTSDIR=`realpath -m $3` BUILDDIR=`realpath $4` +BRANCH=$5 OURDIR=`dirname $0` TIMESTAMP=`date +"%s"` diff --git a/scripts/run-patchmetrics b/scripts/run-patchmetrics index e45d463..20e6268 100755 --- a/scripts/run-patchmetrics +++ b/scripts/run-patchmetrics @@ -6,6 +6,7 @@ PARENTDIR=`realpath $1` TARGETDIR=`realpath $2` RESULTSDIR=`realpath -m $3` BUILDDIR=`realpath $4` +BRANCH=$5 OURDIR=`dirname $0` TIMESTAMP=`date +"%s"` -- 2.39.2
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#61456): https://lists.yoctoproject.org/g/yocto/message/61456 Mute This Topic: https://lists.yoctoproject.org/mt/102138010/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/leave/6691583/21656/737036229/xyzzy [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-