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