2616528
From 7381fd558e64559029980def31faf6661909eeb8 Mon Sep 17 00:00:00 2001
2616528
From: Dalibor Pospisil <dapospis@redhat.com>
2616528
Date: Tue, 12 Dec 2017 16:04:01 +0100
2616528
Subject: [PATCH 16/18] nested phases enabled by default
2616528
2616528
this prevents some yet undocumented and officily unsupported behavoiur regression
2616528
---
2616528
 src/journal.sh | 4 ++--
2616528
 1 file changed, 2 insertions(+), 2 deletions(-)
2616528
2616528
diff --git a/src/journal.sh b/src/journal.sh
2616528
index 374ddfc..516f292 100644
2616528
--- a/src/journal.sh
2616528
+++ b/src/journal.sh
2616528
@@ -539,7 +539,7 @@ rljAddPhase(){
2616528
     # Printing
2616528
     __INTERNAL_PrintHeadLog "$MSG"
2616528
 
2616528
-    if [[ -z "$BEAKERLIB_NESTED_PHASES" ]]; then
2616528
+    if [[ "$BEAKERLIB_NESTED_PHASES" == "0" ]]; then
2616528
       __INTERNAL_METAFILE_INDENT_LEVEL=2
2616528
       __INTERNAL_PHASE_TYPE=( "$1" )
2616528
       __INTERNAL_PHASE_NAME=( "$MSG" )
2616528
@@ -612,7 +612,7 @@ rljClosePhase(){
2616528
     rm -f $logfile
2616528
 
2616528
     # Reset of state variables
2616528
-    if [[ -z "$BEAKERLIB_NESTED_PHASES" ]]; then
2616528
+    if [[ "$BEAKERLIB_NESTED_PHASES" == "0" ]]; then
2616528
       __INTERNAL_METAFILE_INDENT_LEVEL=1
2616528
       __INTERNAL_PHASE_TYPE=()
2616528
       __INTERNAL_PHASE_NAME=()
2616528
-- 
2616528
2.14.3
2616528