e83cdd
From 50192de38d756203a414405e2d7552e89b1c0423 Mon Sep 17 00:00:00 2001
e83cdd
From: Harald Hoyer <harald@redhat.com>
e83cdd
Date: Tue, 4 Dec 2018 10:06:12 +0100
e83cdd
Subject: [PATCH] test/test-functions: correctly move server.log
e83cdd
e83cdd
(cherry picked from commit 712f471ebfae70fd71c0c740e9a3e120464ca7e7)
e83cdd
---
e83cdd
 test/test-functions | 2 +-
e83cdd
 1 file changed, 1 insertion(+), 1 deletion(-)
e83cdd
e83cdd
diff --git a/test/test-functions b/test/test-functions
e83cdd
index a6254ec7..51b3df80 100644
e83cdd
--- a/test/test-functions
e83cdd
+++ b/test/test-functions
e83cdd
@@ -80,7 +80,7 @@ while (($# > 0)); do
e83cdd
                     ret=$?
e83cdd
                     test_cleanup
e83cdd
                     if ((ret!=0)) && [[ -f "$TESTDIR"/server.log ]]; then
e83cdd
-                        mv [[ -f "$TESTDIR"/server.log ]] ./server${TEST_RUN_ID:+-$TEST_RUN_ID}.log
e83cdd
+                        mv "$TESTDIR"/server.log ./server${TEST_RUN_ID:+-$TEST_RUN_ID}.log
e83cdd
                     fi
e83cdd
                     rm -fr -- "$TESTDIR"
e83cdd
                     rm -f -- .testdir${TEST_RUN_ID:+-$TEST_RUN_ID}
e83cdd