Skip to content

Commit 97389fe

Browse files
committed
Add nodecompress option to download_files.sh
That way LTP tests can use modules.tar.xz Signed-off-by: Camila Alvarez <cam.alvarez.i@gmail.com>
1 parent e070c38 commit 97389fe

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/scripts/download_files.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ d=`dirname ${BASH_SOURCE[0]}`
55
kernel=$1
66
modules=$2
77
selftests=$3
8+
no_decompress=${4:-""}
89
output_dir=/build/my-linux
910
modules_dir=${output_dir}/modules
1011
kselftest_dir=${output_dir}/kselftest
@@ -15,8 +16,11 @@ mkdir -p ${modules_dir}
1516
curl -L $kernel -o ${output_dir}/Image
1617
if [[ -n $modules ]]
1718
then
18-
curl -L $modules -o modules.tar.xz &&\
19-
tar xvf modules.tar.xz -C ${modules_dir}
19+
curl -L $modules -o ${modules_dir}/modules.tar.xz &&\
20+
if [[ $no_decompress != "--nodecompress"]]
21+
then
22+
tar xvf ${modules_dir}/modules.tar.xz -C ${modules_dir}
23+
fi
2024
fi
2125
if [[ -n $selftests ]]
2226
then

.github/workflows/ltp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- name: Setup workdir
4646
run: |
4747
mkdir -p /build/my-linux
48-
bash .github/scripts/download_files.sh "${{ inputs.kernel-url }}" "${{ inputs.modules-url }}"
48+
bash .github/scripts/download_files.sh "${{ inputs.kernel-url }}" "${{ inputs.modules-url }}" --nodecompress
4949
- name: Run LTP
5050
run: |
5151
b=$(pwd)

0 commit comments

Comments
 (0)