From 7bd2c46ab035185a1e70c0163d916ea875968254 Mon Sep 17 00:00:00 2001 From: Kevin Hilman Date: Wed, 4 Oct 2017 18:45:39 +0000 Subject: jjb/common: run-test-short: add tests, unique version and callbacks Use the gerrit changeset/patch numbers in combination with a SHA1 of the repo manifest to create a unique build_version for the metadata. Enable jobs to send results to lab-baylibre-legacy backend. Send all tests (there are so few, might as well run them all.) Change-Id: I7009621e0ab0eefbf345e5f801623b029cd7c332 Signed-off-by: Kevin Hilman --- jjb/common/include-agl-run-test-short.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'jjb/common/include-agl-run-test-short.sh') diff --git a/jjb/common/include-agl-run-test-short.sh b/jjb/common/include-agl-run-test-short.sh index f8fdc829..a2a3dda6 100644 --- a/jjb/common/include-agl-run-test-short.sh +++ b/jjb/common/include-agl-run-test-short.sh @@ -20,7 +20,12 @@ if [ ! -z $RELENG ] && \ [[ ! -z $GERRIT_CHANGE_NUMBER ]] && CREATE_ARGS+="-j $GERRIT_CHANGE_NUMBER " [[ ! -z $GERRIT_PATCHSET_NUMBER ]] && CREATE_ARGS+="-i $GERRIT_PATCHSET_NUMBER " [[ ! -z $TARGETIMAGE ]] && CREATE_ARGS+="--img-name $TARGETIMAGE --img-ext ext4.xz " - CREATE_ARGS+="--test smoke -- " + BUILD_VERSION="AGL-gerrit-$GERRIT_CHANGE_NUMBER-$GERRIT_PATCHSET_NUMBER" + [[ -e output/repo-manifest-r.txt.sha1 ]] && BUILD_VERSION+="-$(cat output/repo-manifest-r.txt.sha1)" + CREATE_ARGS+="--name AGL-gerrit " + CREATE_ARGS+="--build-version $BUILD_VERSION " + CREATE_ARGS+="--callback lab-baylibre-legacy " + CREATE_ARGS+="--test all -- " $RELENG/utils/create-jobs.py ${CREATE_ARGS} ${__MACHINE} > testjob.yaml cat testjob.yaml else -- cgit 1.2.3-korg