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

Andorid: changes on test suite name for tuxsuite #312

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

liuyq
Copy link
Contributor

@liuyq liuyq commented Nov 7, 2023

fix the test_name value and testcase file name not the same problem,
and make the xts test suite name overridable for flexibility

@liuyq
Copy link
Contributor Author

liuyq commented Nov 7, 2023

Hi, @roxell @vishalbhoj
Please help have a check when you have time

@roxell
Copy link
Collaborator

roxell commented Nov 7, 2023

Thank you for the PR. Just to get a better understanding of the problem.
What's the different environments (DUT's) these testscases are going to be running on?

@liuyq
Copy link
Contributor Author

liuyq commented Nov 8, 2023

Thank you for the PR. Just to get a better understanding of the problem. What's the different environments (DUT's) these testscases are going to be running on?

This change has no effect on the DUT environment settings, it should be able to be used for any environments (DUT's) just as before.

@liuyq
Copy link
Contributor Author

liuyq commented Nov 13, 2023

Hi, @roxell
Is there any other concern to have this change merged?

@@ -26,5 +27,5 @@
RESULTS_FORMAT: "{{xts_result_format}}"
ANDROID_VERSION: "{{ANDROID_VERSION}}"
TEST_REBOOT_EXPECTED: "{{xts_expect_reboot}}"
name: "{{test_name}}"
name: "{{TEST_SUITE_NAME}}"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is it needed to be overridable here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it would make the use of the testcases flexible.
As you can see, if TEST_SUITE_NAME is overridable before, it would work with setting TEST_SUITE_NAME to android-vts-kernel-v7a or android-vts-kernel-v8a before this change.
That way other work could go ahead instead of being blocked by the merge of this change.
And it does not change anything for the current functions, should be no harm there.

But if you have any concerns on this, please let me know.

Copy link
Collaborator

Choose a reason for hiding this comment

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

The test_name should be the same as the filename, and that then mean that we don't have to do a TEST_SUITE_NAME here to be overridden.

Copy link
Collaborator

Choose a reason for hiding this comment

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

something like this in the files that sets the test_name =)

set test_name = self._TemplateReference__context.name|replace('.yaml', '')

Copy link
Contributor Author

Choose a reason for hiding this comment

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

something like this in the files that sets the test_name =)

set test_name = self._TemplateReference__context.name|replace('.yaml', '')

This seems to be a better solution, though it's less flexible than the overriding way.
Could you please help submit a change for this method?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The test_name should be the same as the filename,

That is true, I know that.

and that then mean that we don't have to do a TEST_SUITE_NAME here to be overridden.

Like I said above, overriding would make it more flexible for some cases instead of waiting for the fix to be merged and deployed, and no harm for the current functions. so it's a better feature.
but obviously you don't agree with that.
Anyway, that's OK, let me drop that commit to only have the test_name fix change for this PR.

which are not the same as the testcase file names

Signed-off-by: Yongqin Liu <[email protected]>
@roxell roxell merged commit 4dd4d2a into Linaro:master Nov 22, 2023
2 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