Skip to content

Commit

Permalink
Added check for default path
Browse files Browse the repository at this point in the history
Signed-off-by: v-ajitpanda <[email protected]>
  • Loading branch information
v-ajitpanda committed May 13, 2024
1 parent d79f550 commit 70473bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ Before you begin, ensure you have met the following requirements:
- `package_info.json` - contains details about the firmware
- `redfish_uri_config.json` - redfish config file
- `test_runner.json` - config file for test run, can be overridden by cli flags
- `redfish_response_messages.json` - config file for redfish response messages (default will be picked from json_spec/input).


### Flag description

Expand Down
2 changes: 1 addition & 1 deletion ctam/ctam.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def main():
exit()

default_config_path = os.path.join(os.path.dirname(os.path.dirname(__file__)), "json_spec", "input")
print(os.path.exists(default_config_path), "FILE LOCATION")
default_config_path = default_config_path.replace('/tmp/', '') if default_config_path.startswith('/tmp/') else default_config_path
if not args.workspace:
ifc_dir = os.path.join(os.path.dirname(__file__), "interfaces")
ext_test_root_dir = os.path.join(os.path.dirname(__file__), "tests")
Expand Down

0 comments on commit 70473bd

Please sign in to comment.