Skip to content

Commit 21a9b89

Browse files
authored
Small improvements (#54)
* fix errors when the test scenario has no extra volumes * "-t" argument now also allows "dialog/07.auto-prack/", with trailing /
1 parent 3d043f8 commit 21a9b89

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

sipssert/scenario.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def __init__(self, scenario_file, controller, test_set, set_logs_dir, set_defaul
6161
if self.network:
6262
nets.append(self.network)
6363
self.volumes = self.config.get("volumes", {})
64+
self.created_volumes = set()
6465
if self.volumes:
6566
self.create_volumes()
6667
self.no_trace = self.is_no_trace(test_set)

sipssert/tests_filters.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class TestsFilter:
3232
def __init__(self, definition = None):
3333
if not definition:
3434
return
35+
definition = os.path.normpath(definition)
3536
s = os.path.split(definition)
3637
if len(s) == 1:
3738
self.tests_pattern = definition

0 commit comments

Comments
 (0)