diff options
author | Jiang, Yunhong <yunhong.jiang@intel.com> | 2016-09-09 16:32:46 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-09-09 16:32:47 +0000 |
commit | 7209c685c8bea4ed6cc2f388ef0a65f1fac5b3ed (patch) | |
tree | 571d48b3f5ea596b5d535bcdc2a7cab5e7fea5e9 /ci/envs/host-setup0.sh | |
parent | f435810f53bffdf881b852a81546039c72a4c60d (diff) | |
parent | 3dbc3510f0107b73c1d3943937218d2dcf5353b3 (diff) |
Merge "This patch contains the scripts to remove hardcoded kernel version, host ip and cleaning of the host machine after execution of cyclictest."
Diffstat (limited to 'ci/envs/host-setup0.sh')
-rwxr-xr-x | ci/envs/host-setup0.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ci/envs/host-setup0.sh b/ci/envs/host-setup0.sh index 28c49b8b8..0778aae96 100755 --- a/ci/envs/host-setup0.sh +++ b/ci/envs/host-setup0.sh @@ -9,10 +9,16 @@ ## http://www.apache.org/licenses/LICENSE-2.0 ############################################################################### +source utils.sh source host-config +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" config_grub () { key=$1 |