Skip to content

Commit

Permalink
tast-on-debian: Create script on Debos to install gsutil
Browse files Browse the repository at this point in the history
Create a script and add it to debos to add `gsutil` to the Debian
base image of kernelci. `gsutil` is required by Tast to download
artifacts on decoder tests.

Signed-off-by: Denis Yuji Shimizu <[email protected]>
  • Loading branch information
denisyuji committed Sep 24, 2024
1 parent 77fd9eb commit abad758
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 0 additions & 2 deletions config/docker/data/tast_parser.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# Description: This script is used to run Tast tests on a DUT and report the
# results to LAVA.
#!/usr/bin/env python3
#
# Copyright (C) 2022 Collabora Limited
Expand Down
5 changes: 5 additions & 0 deletions config/rootfs/debos/rootfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -206,3 +206,8 @@ actions:
description: Create cpio archive
chroot: false
command: cd ${ROOTDIR} ; find -H | cpio -H newc -v -o | gzip -c - > ${ARTIFACTDIR}/{{ $basename -}}/rootfs.cpio.gz

- action: run
description: Install gsutil from Google Cloud SDK required by Tast
chroot: false
script: scripts/install-gsutil.sh
7 changes: 7 additions & 0 deletions config/rootfs/debos/scripts/install-gsutil.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
set -e

wget -nv https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-475.0.0-linux-x86_64.tar.gz
sudo -u cros --login tar -zxf ./google-cloud-cli-475.0.0-linux-x86_64.tar.gz
sudo -u cros --login ./google-cloud-sdk/install.sh -q --usage-reporting=false
sudo -u cros --login echo "PATH=/home/cros/google-cloud-sdk/bin:$PATH" >> /home/cros/.profile

0 comments on commit abad758

Please sign in to comment.