From befb472b1b9650d485f46ae54227caea8bf81cdd Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Wed, 10 Jul 2024 17:25:23 +0200 Subject: Tests: also record `pwd` ... as test meta data. Tests are executed in an unspecified directory, assuming pass or fail is independent of the location where the test is run. While this generally is true, test logs often contain the working directory. So, in order to more easily compare different execution orders of a potential race condition, it can be desirable to compare logs "up to the execution directory". This, however, requires that this directory is recored in the first place. Do so. For consistency of the output format, also have a (fixed) artifact pwd in the summary report. --- shell/test/EXPRESSIONS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shell/test/EXPRESSIONS') diff --git a/shell/test/EXPRESSIONS b/shell/test/EXPRESSIONS index e158a4c..e445c2a 100644 --- a/shell/test/EXPRESSIONS +++ b/shell/test/EXPRESSIONS @@ -172,7 +172,7 @@ , [ "outs" , { "type": "++" , "$1": - [ ["result", "stdout", "stderr", "time-start", "time-stop"] + [ ["result", "stdout", "stderr", "time-start", "time-stop", "pwd"] , { "type": "foreach" , "var": "filename" , "range": {"type": "var", "name": "keep"} -- cgit v1.2.3