Procházet zdrojové kódy

Log test version loaded from environment

Alois Mahdal před 6 roky
rodič
revize
d6f9f2b3d0

+ 6
- 0
src/jat.sh.skel Zobrazit soubor

@@ -78,6 +78,11 @@ JAT__BEID_NS=${JAT__BEID_NS:-_jat_anon_beid_ns_}
78 78
 #
79 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 87
 # Path to main logfile
83 88
 #
@@ -608,6 +613,7 @@ jat__sinit() {
608 613
             echo "jat_version: $__JAT__SELF_VERSION"
609 614
             echo "test:"
610 615
             echo "    id: $JAT__TESTID"
616
+            echo "    version: $JAT__TEST_VERSION"
611 617
             echo "start: $(__jat__newstamp)"
612 618
             echo "events:"
613 619
         } | __jat__writelog

+ 1
- 0
tests/basic/oracle/ylog_both.stdout Zobrazit soubor

@@ -3,6 +3,7 @@ format: jat/0.0
3 3
 jat_version: JAT_VERSION
4 4
 test:
5 5
     id: _jat_anon_test_
6
+    version: _jat_no_test_version_
6 7
 start: time-1
7 8
 events:
8 9
     -

+ 1
- 0
tests/basic/oracle/ylog_fail.stdout Zobrazit soubor

@@ -3,6 +3,7 @@ format: jat/0.0
3 3
 jat_version: JAT_VERSION
4 4
 test:
5 5
     id: _jat_anon_test_
6
+    version: _jat_no_test_version_
6 7
 start: time-1
7 8
 events:
8 9
     -

+ 1
- 0
tests/basic/oracle/ylog_pass.stdout Zobrazit soubor

@@ -3,6 +3,7 @@ format: jat/0.0
3 3
 jat_version: JAT_VERSION
4 4
 test:
5 5
     id: _jat_anon_test_
6
+    version: _jat_no_test_version_
6 7
 start: time-1
7 8
 events:
8 9
     -