summaryrefslogtreecommitdiffstats
path: root/src/test/framework/create-sandbox
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/framework/create-sandbox')
-rwxr-xr-xsrc/test/framework/create-sandbox36
1 files changed, 19 insertions, 17 deletions
diff --git a/src/test/framework/create-sandbox b/src/test/framework/create-sandbox
index 0ddf74a5..78caa74c 100755
--- a/src/test/framework/create-sandbox
+++ b/src/test/framework/create-sandbox
@@ -6,7 +6,7 @@
#
# OpenPOWER sbe Project
#
-# Contributors Listed Below - COPYRIGHT 2015,2017
+# Contributors Listed Below - COPYRIGHT 2015,2019
# [+] International Business Machines Corp.
#
#
@@ -53,22 +53,24 @@ export sb=$SANDBOXBASE/src
execute_in_sandbox "ecc --inject ${SBE_IMG_OUT_LOC}/sbe_seeprom.bin --output ${SBE_IMG_OUT_LOC}/sbe_seeprom.bin.ecc --p8 " "ppc" || exit -1
-# Run presimsetup workarounds.
-echo "----Running presimsetup workarounds."
-if [ -f ${CITESTPATH}/etc/workarounds.presimsetup ];
-then
- ${CITESTPATH}/etc/workarounds.presimsetup || exit -1
-fi
+echo $MACHINE_TYPE
+if [ "$MACHINE_TYPE" = "NIMBUS" ]; then
+ # Run presimsetup workarounds.
+ echo "----Running presimsetup workarounds."
+ if [ -f ${CITESTPATH}/etc/workarounds.presimsetup ];
+ then
+ ${CITESTPATH}/etc/workarounds.presimsetup || exit -1
+ fi
-# Run start_simics to populate simics directories.
-echo "----Setting up simics."
-execute_in_sandbox "start_simics -no_start -machine $MACHINE -batch_mode" \
- "ppc" || exit -1
+ # Run start_simics to populate simics directories.
+ echo "----Setting up simics."
+ execute_in_sandbox "start_simics -no_start -machine $MACHINE_TYPE -batch_mode" \
+ "ppc" || exit -1
-# Run postsimsetup workarounds.
-echo "----Running postsimsetup workarounds."
-if [ -f ${CITESTPATH}/etc/workarounds.postsimsetup ];
-then
- ${CITESTPATH}/etc/workarounds.postsimsetup || exit -1
+ # Run postsimsetup workarounds.
+ echo "----Running postsimsetup workarounds."
+ if [ -f ${CITESTPATH}/etc/workarounds.postsimsetup ];
+ then
+ ${CITESTPATH}/etc/workarounds.postsimsetup || exit -1
+ fi
fi
-
OpenPOWER on IntegriCloud