Skip to content

Commit 4f67cbe

Browse files
authored
Merge branch 'master' into bugfix/overriden-hooks-exec-order
2 parents bbfae46 + 3abb7e7 commit 4f67cbe

File tree

4 files changed

+25
-3
lines changed

4 files changed

+25
-3
lines changed

docs/config_reference.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1219,9 +1219,9 @@ The additional properties for the ``filelog`` handler are the following:
12191219
{basedir}/
12201220
system1/
12211221
partition1/
1222-
test_short_name.log
1222+
<test_class_name>.log
12231223
partition2/
1224-
test_short_name.log
1224+
<test_class_name>.log
12251225
...
12261226
system2/
12271227
...
@@ -1241,6 +1241,12 @@ The additional properties for the ``filelog`` handler are the following:
12411241
Examples of changes in the logged information are when the log record format changes or a new performance metric is added, deleted or has its name changed.
12421242
This behavior guarantees that each log file is consistent and it will not break existing parsers.
12431243

1244+
.. versionchanged:: 4.3
1245+
1246+
In the generated log file, the name of the test class name is used instead of the test's short name (which included the test's hash).
1247+
This allows the results of different variants of a parameterized test to be stored in the same log file facilitating post-processing.
1248+
1249+
12441250
The ``graylog`` log handler
12451251
---------------------------
12461252

reframe/frontend/autodetect.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ def __enter__(self):
5959
shutil.copy2(src, self._workdir)
6060
except FileNotFoundError:
6161
use_pip = True
62+
except Exception as err:
63+
osext.rmtree(self._workdir)
64+
raise err
6265

6366
return self._workdir, use_pip
6467

reframe/utility/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1275,6 +1275,9 @@ def __delitem__(self, key):
12751275
def __missing__(self, key):
12761276
raise KeyError(str(key))
12771277

1278+
def __rfm_json_encode__(self):
1279+
return self.data
1280+
12781281

12791282
@functools.total_ordering
12801283
class OrderedSet(collections.abc.MutableSet):

unittests/test_utility.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,6 @@ def test_scoped_dict_construction():
799799
'a': {'k1': 3, 'k2': 4},
800800
'b': {'k3': 5}
801801
}
802-
namespace_dict = reframe.utility.ScopedDict()
803802
namespace_dict = reframe.utility.ScopedDict(d)
804803

805804
# Change local dict and verify that the stored values are not affected
@@ -1088,6 +1087,17 @@ def test_scoped_dict_update():
10881087
assert scoped_dict == scoped_dict_alt
10891088

10901089

1090+
def test_scoped_dict_json_enc():
1091+
import json
1092+
1093+
d = {
1094+
'a': {'k1': 3, 'k2': 4},
1095+
'b': {'k3': 5}
1096+
}
1097+
ns_dict = reframe.utility.ScopedDict(d)
1098+
assert d == json.loads(jsonext.dumps(ns_dict))
1099+
1100+
10911101
def test_sequence_view():
10921102
l = util.SequenceView([1, 2, 2])
10931103
assert 1 == l[0]

0 commit comments

Comments
 (0)