diff options
Diffstat (limited to 'tests/conftest.py')
| -rw-r--r-- | tests/conftest.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index accb8f17..a0b8fd0b 100644 --- a/tests/conftest.py +++ b/tests/conftest.py | |||
| @@ -416,14 +416,17 @@ class VdkrRunner: | |||
| 416 | raise AssertionError(error_msg) | 416 | raise AssertionError(error_msg) |
| 417 | return result | 417 | return result |
| 418 | 418 | ||
| 419 | def memres_start(self, timeout=120, port_forwards=None): | 419 | def memres_start(self, timeout=120, port_forwards=None, no_registry=False): |
| 420 | """Start memory resident mode. | 420 | """Start memory resident mode. |
| 421 | 421 | ||
| 422 | Args: | 422 | Args: |
| 423 | timeout: Command timeout in seconds | 423 | timeout: Command timeout in seconds |
| 424 | port_forwards: List of port forwards, e.g., ["8080:80", "2222:22"] | 424 | port_forwards: List of port forwards, e.g., ["8080:80", "2222:22"] |
| 425 | no_registry: Disable baked-in registry (default False - registry check is now smart) | ||
| 425 | """ | 426 | """ |
| 426 | args = ["memres", "start"] | 427 | args = ["memres", "start"] |
| 428 | if no_registry: | ||
| 429 | args.append("--no-registry") | ||
| 427 | if port_forwards: | 430 | if port_forwards: |
| 428 | for pf in port_forwards: | 431 | for pf in port_forwards: |
| 429 | args.extend(["-p", pf]) | 432 | args.extend(["-p", pf]) |
| @@ -646,14 +649,17 @@ class VpdmnRunner: | |||
| 646 | raise AssertionError(error_msg) | 649 | raise AssertionError(error_msg) |
| 647 | return result | 650 | return result |
| 648 | 651 | ||
| 649 | def memres_start(self, timeout=120, port_forwards=None): | 652 | def memres_start(self, timeout=120, port_forwards=None, no_registry=False): |
| 650 | """Start memory resident mode. | 653 | """Start memory resident mode. |
| 651 | 654 | ||
| 652 | Args: | 655 | Args: |
| 653 | timeout: Command timeout in seconds | 656 | timeout: Command timeout in seconds |
| 654 | port_forwards: List of port forwards, e.g., ["8080:80", "2222:22"] | 657 | port_forwards: List of port forwards, e.g., ["8080:80", "2222:22"] |
| 658 | no_registry: Disable baked-in registry (default False - registry check is now smart) | ||
| 655 | """ | 659 | """ |
| 656 | args = ["memres", "start"] | 660 | args = ["memres", "start"] |
| 661 | if no_registry: | ||
| 662 | args.append("--no-registry") | ||
| 657 | if port_forwards: | 663 | if port_forwards: |
| 658 | for pf in port_forwards: | 664 | for pf in port_forwards: |
| 659 | args.extend(["-p", pf]) | 665 | args.extend(["-p", pf]) |
