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