瀏覽代碼

Log test version loaded from environment

Alois Mahdal 6 年之前
父節點
當前提交
d6f9f2b3d0
共有 4 個檔案被更改,包括 9 行新增0 行删除
  1. 6
    0
      src/jat.sh.skel
  2. 1
    0
      tests/basic/oracle/ylog_both.stdout
  3. 1
    0
      tests/basic/oracle/ylog_fail.stdout
  4. 1
    0
      tests/basic/oracle/ylog_pass.stdout

+ 6
- 0
src/jat.sh.skel 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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
     -