Skip to content

Commit 54347d4

Browse files
committed
Updating tests
1 parent 1705e3a commit 54347d4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/linux/test-linux.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,25 @@
33
# Copyright 2021-2024 VMware, Inc.
44
# SPDX-License-Identifier: Apache-2
55

6+
# Testing assumes RedHat family
7+
68
oldpwd=$(pwd)
79
mkdir -p /root/ || true
810
## echo "machine gitlab.com login gitlab-ci-token password ${CI_JOB_TOKEN}" >> ~/.netrc
911
id
1012
date
1113
yum makecache
1214
ls -alh
15+
sleep 1
1316
ls -alh linux/svtminion.sh
17+
sleep 1
1418
cd linux
1519
./svtminion.sh --depend || { _retn=$?; if [[ ${_retn} -eq 126 ]]; then echo "test correct"; else echo "test failed, should be missing at least the vmtoolsd dependency, returned '${_retn}'"; exit 1; fi; }
1620
ls -alh /var/log/vmware-svtminion.sh-depend-*
1721
yum -y install open-vm-tools
18-
yum -y install curl
22+
yum -y install --allowerasing curl
1923
yum -y install wget
24+
yum -y install procps-ng
2025
./svtminion.sh --depend --loglevel info || { _retn=$?; echo "test failed, there should be no missing dependencies, returned '${_retn}'"; }
2126
ls -l /var/log/vmware-svtminion.sh-depend-* | wc -l
2227
if [[ 2 -eq $(ls -l /var/log/vmware-svtminion.sh-depend-* | wc -l) ]]; then echo "test correct"; else "test failed, should be 2 depend log files"; exit 1; fi

0 commit comments

Comments
 (0)