jjb/common: run-test-short: add tests, unique version and callbacks 23/11123/2
authorKevin Hilman <khilman@baylibre.com>
Wed, 4 Oct 2017 18:45:39 +0000 (18:45 +0000)
committerKevin Hilman <khilman@baylibre.com>
Wed, 4 Oct 2017 18:58:07 +0000 (18:58 +0000)
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 <khilman@baylibre.com>
jjb/common/include-agl-run-test-short.sh

index f8fdc82..a2a3dda 100644 (file)
@@ -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