[libvirt PATCH v2 7/8] ci: integration.sh: Replace 'test' with '[' operator

Erik Skultety posted 8 patches 1 year, 8 months ago
There is a newer version of this series
[libvirt PATCH v2 7/8] ci: integration.sh: Replace 'test' with '[' operator
Posted by Erik Skultety 1 year, 8 months ago
Since we now have a standalone script instead of inlined shell commands
in a YAML, we can adopt the common syntax for if-then-else clauses
which involve the '[' test command alias rather than keep using 'test'
explicitly.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
---
 ci/integration.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ci/integration.sh b/ci/integration.sh
index cbf2b0f1b4..7bf3623809 100644
--- a/ci/integration.sh
+++ b/ci/integration.sh
@@ -12,7 +12,7 @@ sudo systemctl daemon-reexec
 # Source the os-release file to query the vendor-provided variables
 source /etc/os-release
 
-if test "$ID" = "centos" && test "$VERSION_ID" -eq 8
+if [ "$ID" = "centos" -a "$VERSION_ID" -eq 8 ]
 then
     DAEMONS="libvirtd virtlockd virtlogd"
 else
-- 
2.39.1