You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
961 B
26 lines
961 B
1 year ago
|
unchanged:
|
||
|
--- a/src/journal.sh
|
||
|
+++ b/src/journal.sh
|
||
|
@@ -922,7 +922,7 @@ __INTERNAL_WriteToMetafile(){
|
||
|
|
||
|
line="$indent${element:+$element }--timestamp=\"${__INTERNAL_TIMESTAMP}\"$line"
|
||
|
lineraw="$indent${element:+$element }--timestamp=\"${__INTERNAL_TIMESTAMP}\"$lineraw"
|
||
|
- echo "#${lineraw:1}" >> $__INTERNAL_BEAKERLIB_METAFILE
|
||
|
+ [[ -n "$DEBUG" ]] && echo "#${lineraw:1}" >> $__INTERNAL_BEAKERLIB_METAFILE
|
||
|
echo "$line" >> $__INTERNAL_BEAKERLIB_METAFILE
|
||
|
}
|
||
|
|
||
|
only in patch2:
|
||
|
unchanged:
|
||
|
--- a/src/test/journalTest.sh
|
||
|
+++ b/src/test/journalTest.sh
|
||
|
@@ -26,7 +26,7 @@ test_rlJournalStart(){
|
||
|
assertTrue "journal is well-formed XML" "xmllint $__INTERNAL_BEAKERLIB_JOURNAL >/dev/null"
|
||
|
|
||
|
# existing journal is not overwritten
|
||
|
- silentIfNotDebug 'rlLog "I am"'
|
||
|
+ silentIfNotDebug 'DEBUG=1 rlLog "I am"'
|
||
|
rlJournalStart
|
||
|
assertTrue "existing meta not overwritten" \
|
||
|
"grep 'I\\\ am' $__INTERNAL_BEAKERLIB_METAFILE"
|