lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 4e75a91 2/3: Differentiate test log directori


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 4e75a91 2/3: Differentiate test log directories by host type
Date: Sat, 27 Apr 2019 14:51:46 -0400 (EDT)

branch: master
commit 4e75a91eb266232ca1128bf1b1825cf847eb1417
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Differentiate test log directories by host type
---
 gui_test.sh          | 6 ++++--
 nychthemeral_test.sh | 2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/gui_test.sh b/gui_test.sh
index 727dcab..c165ad7 100755
--- a/gui_test.sh
+++ b/gui_test.sh
@@ -138,8 +138,10 @@ gui_test_clutter='
 '
 
 # Directory for test logs.
-mkdir --parents /tmp/lmi/logs
+log_dir=/tmp/lmi/"$LMI_HOST"/logs
+mkdir --parents "$log_dir"
 
 cd /opt/lmi/src/lmi
 
-"$PERFORM" /opt/lmi/bin/wx_test --ash_nazg --data_path=/opt/lmi/data 2>&1 | 
tee /tmp/lmi/logs/gui_test | sed -e "$gui_test_clutter"
+"$PERFORM" /opt/lmi/bin/wx_test --ash_nazg --data_path=/opt/lmi/data 2>&1 \
+  | tee "$log_dir"/gui_test | sed -e "$gui_test_clutter"
diff --git a/nychthemeral_test.sh b/nychthemeral_test.sh
index 33f00c7..656e88e 100755
--- a/nychthemeral_test.sh
+++ b/nychthemeral_test.sh
@@ -135,7 +135,7 @@ nychthemeral_clutter='
 '
 
 # Directory for test logs.
-log_dir=/tmp/lmi/logs
+log_dir=/tmp/lmi/"$LMI_HOST"/logs
 mkdir --parents "$log_dir"
 
 {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]