Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added fix for secvarctl-dbg directory in guest_generate_testdata.py #88

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

Krishan-Saraswat
Copy link

Added directory fix for the given error- No such file or directory: '../../bin/secvarctl-dbg'.


Error Log:-
[root@ test]# python3 guest_generate_testdata.py
Traceback (most recent call last):
File "/home/secvarctl/test/guest_generate_testdata.py", line 244, in
create_goldenkey_files ()
File "/home/secvarctl/test/guest_generate_testdata.py", line 135, in create_goldenkey_files
generate_esl (var_name, format_type, cert_file, esl_file)
File "/home/secvarctl/test/guest_generate_testdata.py", line 80, in generate_esl
command (secvarctl + [format_type, "-i", cert_file, "-o", esl_file, "-n", variable_name])
File "/home/secvarctl/test/guest_generate_testdata.py", line 61, in command
return subprocess.call (args, stderr=err, stdout=out)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.12/subprocess.py", line 389, in call
with Popen(*popenargs, **kwargs) as p:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.12/subprocess.py", line 1026, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib64/python3.12/subprocess.py", line 1955, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '../../bin/secvarctl-dbg'


After applying fix:
[root@ test]# python3 guest_generate_testdata.py
RESULT: SUCCESS
RESULT: SUCCESS

Added directory fix for the given error- No such file or directory:
'../../bin/secvarctl-dbg'.

Signed-off-by: Krishan Gopal Saraswat <krishang@linux.ibm.com>
Copy link
Collaborator

@erichte-ibm erichte-ibm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks!

@erichte-ibm erichte-ibm merged commit 1622677 into open-power:main Sep 30, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants