summaryrefslogtreecommitdiff
path: root/linux-lng-preempt-rt.sh
diff options
context:
space:
mode:
authorAnders Roxell <anders.roxell@linaro.org>2013-12-09 09:26:22 +0100
committerAnders Roxell <anders.roxell@linaro.org>2013-12-09 09:26:22 +0100
commit0d97a38d3c96b6138a023a7834f64e352bacccd3 (patch)
tree9f43019b679cb5b5c96447863999fc72aa22fc38 /linux-lng-preempt-rt.sh
parent5f8e37eef30521fbae584acab1444ff01537fc7d (diff)
adding extra metadata to LAVA, be and linux-hash
Signed-off-by: Anders Roxell <anders.roxell@linaro.org> Acked-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'linux-lng-preempt-rt.sh')
-rwxr-xr-xlinux-lng-preempt-rt.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/linux-lng-preempt-rt.sh b/linux-lng-preempt-rt.sh
index 738ee0d..80270da 100755
--- a/linux-lng-preempt-rt.sh
+++ b/linux-lng-preempt-rt.sh
@@ -84,6 +84,14 @@ ${WORKSPACE}/linaro-image-tools/linaro-media-create --dev ${lmc_dev} --output-di
mv sd.img ${hwpack}-lng-sd.img
gzip -9 ${hwpack}-lng-sd.img
+# Create metadata to send to LAVA
+cat << EOF > metadata.json
+{
+"linux.hash":"$(git log -n1 --pretty=format:%h)",
+"hwpack.endian":"${hwpack}"
+}
+EOF
+
cat << EOF > post_build_lava_parameters
HWPACK_JOB_NAME=${JOB_NAME}
HWPACK_BUILD_NUMBER=${BUILD_NUMBER}
@@ -93,6 +101,7 @@ BUNDLE_STREAM_NAME=/public/team/linaro/ci-linux-lng-preempt-rt/
LAVA_TEST_PLAN=hackbench ltp ltp-realtime kvm lmbench kvm-benchmark nohz-isolation
DEVICE_TYPE=${board_types}
DISTRIBUTION=openembedded
+METADATA_URL=${BUILD_URL}/artifact/metadata.json
EOF
cat << EOF > BUILD-INFO.txt