From 7ddb479f014b458ef992d55d71a57322bcc19c7f Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Mon, 23 Sep 2019 15:54:38 -0400 Subject: [PATCH] Add sha256 for downloaded kernel and rootfs Signed-off-by: Jonathan Rajotte --- scripts/babeltrace-benchmark/lava_submit.py | 4 ++++ .../template_lava_job_bt_benchmark.jinja2 | 2 ++ 2 files changed, 6 insertions(+) diff --git a/scripts/babeltrace-benchmark/lava_submit.py b/scripts/babeltrace-benchmark/lava_submit.py index 8ee331e..b6ec868 100644 --- a/scripts/babeltrace-benchmark/lava_submit.py +++ b/scripts/babeltrace-benchmark/lava_submit.py @@ -54,9 +54,11 @@ def submit( commit, debug=False, kernel_commit=DEFAULT_KERNEL_COMMIT, wait_for_completion=True ): nfsrootfs = "https://obj.internal.efficios.com/lava/rootfs/rootfs_amd64_xenial_2018-12-05.tar.gz" + nfsrootfs_sha256 = "0df15933ed18eb73ed5f0e7b1eca8d032ee88d92e5dbfc0f56dcc68c821048a8" kernel_url = "https://obj.internal.efficios.com/lava/kernel/{}.baremetal.bzImage".format( kernel_commit ) + kernel_sha256 = "0da55bad8c780a889ae71e7aa0f4788bc671c598c21369ad4211555088e3d889" modules_url = "https://obj.internal.efficios.com/lava/modules/linux/{}.baremetal.linux.modules.tar.gz".format( kernel_commit ) @@ -78,7 +80,9 @@ def submit( context = dict() context["kernel_url"] = kernel_url + context["kernel_sha256"] = kernel_sha256 context["nfsrootfs_url"] = nfsrootfs + context["nfsrootfs_sha256"] = nfsrootfs_sha256 context["commit_hash"] = commit render = jinja_template.render(context) diff --git a/scripts/babeltrace-benchmark/template_lava_job_bt_benchmark.jinja2 b/scripts/babeltrace-benchmark/template_lava_job_bt_benchmark.jinja2 index 4a0b2fb..227356b 100644 --- a/scripts/babeltrace-benchmark/template_lava_job_bt_benchmark.jinja2 +++ b/scripts/babeltrace-benchmark/template_lava_job_bt_benchmark.jinja2 @@ -27,9 +27,11 @@ actions: to: tftp kernel: url: {{ kernel_url }} + sha256sum: {{ kernel_sha256}} type: zimage nfsrootfs: url: {{ nfsrootfs_url }} + sha256sum: {{ nfsroot_sha256}} compression: gz - boot: -- 2.34.1