yocto-autobuilder-helper/scripts/run-patchmetrics
Richard Purdie fd1aa61d87 scripts/run-patchmetrics: Ensure paths are sanitized
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-05-13 16:39:59 +01:00

492 B
Executable File

#!/bin/bash

PARENTDIR=realpath $1 TARGETDIR=realpath $2 RESULTSDIR=realpath $3

git clone ssh://git@push.yoctoproject.org/yocto-metrics $1/yocto-metrics $1/scripts/contrib/patchreview.py $2 -j $1/yocto-metrics/patch-status.json git -C $1/yocto-metrics commit -asm "Autobuilder adding new patch stats" git -C $1/yocto-metrics push

if [ ! -d $RESULTSDIR ]; then mkdir $RESULTSDIR fi

cp $1/yocto-metrics/patch-status.json $RESULTSDIR cp $1/yocto-metrics/patch-status/* $RESULTSDIR