Skip to content

Conversation

@vrbagalkot
Copy link

Making use of built in functions to compile

@vrbagalkot vrbagalkot force-pushed the v2_blktest branch 2 times, most recently from abb1045 to 863aa2f Compare April 15, 2025 12:00
Making use of built in functions to compile

Signed-off-by: vrbagalkot <[email protected]>
@vrbagalkot
Copy link
Author

avocado run --max-parallel-tasks=1 kselftest.py -m /home/upstreamci/avocado-fvt-wrapper/tests/avocado-misc-tests/kernel/kselftest.py.data/em.yaml
Fetching asset from kselftest.py:kselftest.test
JOB ID     : 356b317273558b93ce0db54facabbb6e84754ab4
JOB LOG    : /home/upstreamci/avocado-fvt-wrapper/results/job-2025-04-15T13.37-356b317/job.log
 (1/1) kselftest.py:kselftest.test;run-component-papr_attributes-run_type-upstream-5789: STARTED
 (1/1) kselftest.py:kselftest.test;run-component-papr_attributes-run_type-upstream-5789: PASS (2536.00 s)
RESULTS    : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML   : /home/upstreamci/avocado-fvt-wrapper/results/job-2025-04-15T13.37-356b317/results.html
JOB TIME   : 2580.15 s

@vrbagalkot
Copy link
Author

@AYUSHJAIN951 Please review.

Copy link
Member

@AYUSHJAIN951 AYUSHJAIN951 left a comment

Choose a reason for hiding this comment

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

LGTM
Just please attach some more run logs, for code parts you are changing here.

make_cmd = 'make -C %s %s -C %s run_tests' % (
self.sourcedir, kself_args, test_comp)
self.result = process.run(make_cmd, shell=True, ignore_status=True)
args = '-C %s %s -C %s run_tests' % (self.sourcedir, kself_args, test_comp)
Copy link
Member

Choose a reason for hiding this comment

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

nit use f strings here as well, as you are using same in other changed parts

Copy link
Author

Choose a reason for hiding this comment

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

f is being used in the below line.

Copy link
Member

Choose a reason for hiding this comment

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

which is actually not even needed there, it can be just

args = " -C {self.sourcedir} {kself_args} -C {test_comp} run_tests"
self.result = build.run_make(path=self.sourcedir, extra_args=args)

Copy link
Author

Choose a reason for hiding this comment

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

I think, you said, to use f string... Am I missing anything?

Copy link
Member

Choose a reason for hiding this comment

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

aah sorry
args = f" -C {self.sourcedir} {kself_args} -C {test_comp} run_tests"
self.result = build.run_make(path=self.sourcedir, extra_args=args)

Copy link
Author

Choose a reason for hiding this comment

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

I think, existing code should also be fine.

Copy link
Member

Choose a reason for hiding this comment

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

I am fine with both, just attach some more logs, and I am good here

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