mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-19 04:58:00 +00:00
Rim test 1 needed hw file
This commit is contained in:
parent
168b62a6da
commit
ac12e75403
@ -19,6 +19,17 @@ hwJsonFileName="$profile"_"$test"_hw.json
|
|||||||
hwJsonFile="$testDir/$hwJsonFileName"
|
hwJsonFile="$testDir/$hwJsonFileName"
|
||||||
ciTestHwJsonFile="$ciTestDir/hw.json"
|
ciTestHwJsonFile="$ciTestDir/hw.json"
|
||||||
|
|
||||||
|
# Use default settings if profile does not have specific changes
|
||||||
|
if [ ! -f "$hwJsonFile" ]; then
|
||||||
|
echo "Test is using a profile with no hardware manifest file. Using default."
|
||||||
|
hwJsonFile="$profileDir"/default/laptop_default_hw.json
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -f "$dmiZip" ]; then
|
||||||
|
echo "Test is using a profile with no DMI data. Using default."
|
||||||
|
dmiZip="$profileDir"/default/laptop_dmi.zip
|
||||||
|
fi
|
||||||
|
|
||||||
# Current TCG folder for platform certs
|
# Current TCG folder for platform certs
|
||||||
mkdir -p $tcgDir; # Create the platform cert folder if its not there
|
mkdir -p $tcgDir; # Create the platform cert folder if its not there
|
||||||
rm -f $tcgDir*; # Clear out any previous data
|
rm -f $tcgDir*; # Clear out any previous data
|
||||||
@ -26,13 +37,15 @@ rm -f $tcgDir*; # Clear out any previous data
|
|||||||
echo "Test is using platform cert(s) from $profile : $test"
|
echo "Test is using platform cert(s) from $profile : $test"
|
||||||
# Step 1: Copy hw json file, if it exists.
|
# Step 1: Copy hw json file, if it exists.
|
||||||
if [ -f "$hwJsonFile" ]; then
|
if [ -f "$hwJsonFile" ]; then
|
||||||
cp "$hwJsonFile" "$ciTestHwJsonFile"
|
echo "hw file used was $hwJsonFile"
|
||||||
|
cp "$hwJsonFile" "$ciTestHwJsonFile"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Can remove this once unzip is added to the image
|
# Can remove this once unzip is added to the image
|
||||||
dnf install -y unzip &> /dev/null
|
dnf install -y unzip &> /dev/null
|
||||||
|
|
||||||
# Step 2: Unpack the dmi files.
|
# Step 2: Unpack the dmi files.
|
||||||
|
echo "dmi file used was $dmiZip"
|
||||||
unzip -o "$dmiZip" -d "$ciTestDir"
|
unzip -o "$dmiZip" -d "$ciTestDir"
|
||||||
|
|
||||||
# Step 3: Copy the platform cert to tcg folder
|
# Step 3: Copy the platform cert to tcg folder
|
||||||
|
0
.ci/system-tests/container/rim_setup.sh
Normal file → Executable file
0
.ci/system-tests/container/rim_setup.sh
Normal file → Executable file
Loading…
Reference in New Issue
Block a user