From 3dbc3510f0107b73c1d3943937218d2dcf5353b3 Mon Sep 17 00:00:00 2001 From: kalyanreddy Date: Wed, 7 Sep 2016 19:14:05 +0530 Subject: This patch contains the scripts to remove hardcoded kernel version, host ip and cleaning of the host machine after execution of cyclictest. Change-Id: I92aaed5229fc3c572e74dcce03b2c984ae1bb111 Co-Authored-By: Shravani Signed-off-by: Gundarapu Kalyan Reddy --- ci/envs/guest-setup0.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'ci/envs/guest-setup0.sh') diff --git a/ci/envs/guest-setup0.sh b/ci/envs/guest-setup0.sh index 4f9eaa430..301d34cbe 100755 --- a/ci/envs/guest-setup0.sh +++ b/ci/envs/guest-setup0.sh @@ -8,9 +8,15 @@ ## http://www.apache.org/licenses/LICENSE-2.0 ############################################################################### +source utils.sh +KERNEL_VERSION=$( getKernelVersion ) +if [ -z $KERNEL_VERSION ];then + echo "Kernel RPM not found" + exit 1 +fi rpmdir=${1:-"/root/workspace/rpm"} -rpmpat="kernel-4.4*.rpm" +rpmpat="kernel-${KERNEL_VERSION}*.rpm" guest_isolcpus=1 # The script's caller should passing the rpm directory that is built out from -- cgit 1.2.3-korg