Added fix for secvarctl-dbg directory in guest_generate_testdata.py #88
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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