Browse Source

Log test version loaded from environment

Alois Mahdal 6 years ago
parent
commit
d6f9f2b3d0

+ 6
- 0
src/jat.sh.skel View File

78
 #
78
 #
79
 JAT__TESTID=${JAT__TESTID:-_jat_anon_test_}
79
 JAT__TESTID=${JAT__TESTID:-_jat_anon_test_}
80
 
80
 
81
+#
82
+# Test version
83
+#
84
+JAT__TEST_VERSION=${JAT__TEST_VERSION:-_jat_no_test_version_}
85
+
81
 #
86
 #
82
 # Path to main logfile
87
 # Path to main logfile
83
 #
88
 #
608
             echo "jat_version: $__JAT__SELF_VERSION"
613
             echo "jat_version: $__JAT__SELF_VERSION"
609
             echo "test:"
614
             echo "test:"
610
             echo "    id: $JAT__TESTID"
615
             echo "    id: $JAT__TESTID"
616
+            echo "    version: $JAT__TEST_VERSION"
611
             echo "start: $(__jat__newstamp)"
617
             echo "start: $(__jat__newstamp)"
612
             echo "events:"
618
             echo "events:"
613
         } | __jat__writelog
619
         } | __jat__writelog

+ 1
- 0
tests/basic/oracle/ylog_both.stdout View File

3
 jat_version: JAT_VERSION
3
 jat_version: JAT_VERSION
4
 test:
4
 test:
5
     id: _jat_anon_test_
5
     id: _jat_anon_test_
6
+    version: _jat_no_test_version_
6
 start: time-1
7
 start: time-1
7
 events:
8
 events:
8
     -
9
     -

+ 1
- 0
tests/basic/oracle/ylog_fail.stdout View File

3
 jat_version: JAT_VERSION
3
 jat_version: JAT_VERSION
4
 test:
4
 test:
5
     id: _jat_anon_test_
5
     id: _jat_anon_test_
6
+    version: _jat_no_test_version_
6
 start: time-1
7
 start: time-1
7
 events:
8
 events:
8
     -
9
     -

+ 1
- 0
tests/basic/oracle/ylog_pass.stdout View File

3
 jat_version: JAT_VERSION
3
 jat_version: JAT_VERSION
4
 test:
4
 test:
5
     id: _jat_anon_test_
5
     id: _jat_anon_test_
6
+    version: _jat_no_test_version_
6
 start: time-1
7
 start: time-1
7
 events:
8
 events:
8
     -
9
     -