Commit 1ea4709c authored by Andrew Jones's avatar Andrew Jones Committed by Radim Krčmář
Browse files

mkstandalone: provide errata to tests


Signed-off-by: Andrew Jones's avatarAndrew Jones <drjones@redhat.com>
Reviewed-by: default avatarLaurent Vivier <lvivier@redhat.com>
Signed-off-by: default avatarRadim Krčmář <rkrcmar@redhat.com>
parent 70fcb64b
......@@ -194,5 +194,6 @@ FIRMWARE=$firmware
ENDIAN=$endian
PRETTY_PRINT_STACKS=$pretty_print_stacks
ENVIRON_DEFAULT=$environ_default
ERRATATXT=errata.txt
U32_LONG_FMT=$u32_long
EOF
......@@ -196,9 +196,9 @@ env_generate_errata ()
kernel_sublevel=${kernel_sublevel%%[!0-9]*}
[ "$ENVIRON_DEFAULT" != "yes" ] && return
[ ! -f errata.txt ] && return
[ ! -f "$ERRATATXT" ] && return
for line in $(grep -v '^#' errata.txt | tr -d '[:blank:]' | cut -d: -f1,2); do
for line in $(grep -v '^#' "$ERRATATXT" | tr -d '[:blank:]' | cut -d: -f1,2); do
commit=${line%:*}
minver=${line#*:}
......
......@@ -40,6 +40,7 @@ generate_test ()
echo "#!/usr/bin/env bash"
echo "export STANDALONE=yes"
echo "export ENVIRON_DEFAULT=yes"
echo "export HOST=\$(uname -m | sed -e 's/i.86/i386/;s/arm.*/arm/;s/ppc64.*/ppc64/')"
echo "export PRETTY_PRINT_STACKS=no"
......@@ -62,6 +63,11 @@ generate_test ()
echo 'export FIRMWARE'
fi
if [ "$ERRATATXT" ]; then
temp_file ERRATATXT "$ERRATATXT"
echo 'export ERRATATXT'
fi
temp_file bin "$kernel"
args[3]='$bin'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment