Skip to content

Commit

Permalink
require pcap path
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed Dec 3, 2024
1 parent 31e782e commit b3ac9a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "malcolm-test"
version = "0.6.0"
version = "0.6.1"
authors = [
{ name="Seth Grover", email="[email protected]" },
]
Expand All @@ -20,7 +20,7 @@ dependencies = [
'mmguero',
'elasticsearch-dsl==8.16.0',
'elasticsearch==8.16.0',
'opensearch-py==2.6.0',
'opensearch-py==2.8.0',
'petname==2.6',
'psutil==6.1.0',
'pytest==8.3.3',
Expand Down
6 changes: 5 additions & 1 deletion src/maltest/maltest.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def main():
dest='pcapPath',
metavar='<string>',
type=str,
default=os.getenv('MALCOLM_PCAP_PATH', os.getcwd()),
default=os.getenv('MALCOLM_PCAP_PATH', ''),
help=f'Path containing PCAP files used by tests (UPLOAD_ARTIFACTS in tests should resolve relative to this path)',
)
testArgGroup.add_argument(
Expand Down Expand Up @@ -340,6 +340,10 @@ def main():
mmguero.eprint(f'{MALTEST_PROJECT_NAME} v{importlib.metadata.version(MALTEST_PROJECT_NAME)}')
return 0

if not os.path.isdir(args.pcapPath):
logging.error('PCAP path must be specified with -p/--pcap-path or MALCOLM_PCAP_PATH')
return 1

# the whole thing runs on virter, so if we don't have that what are we even doing here
err, _ = mmguero.RunProcess(['virter', 'version'])
if err != 0:
Expand Down

0 comments on commit b3ac9a4

Please sign in to comment.