Skip to content

Conversation

@catherineliuchina
Copy link
Collaborator

This PR enhances the ACK test case selection functionality with the following improvements:

  1. Dash normalization: All variations of dash characters are now normalized to the standard ASCII hyphen (-).
  2. Stricter -o matching behavior: If the value passed to -o does not exactly match any existing test case, the tool now returns a clear error message and exits, instead of running all test cases.
  3. Simplified test case listing: When using ack_cli.py -l to list test cases, it is no longer necessary to provide the -n network.conf parameter.

In addition to these functional changes, this PR also updates the publication date to align with the latest release plan.

Regression test (232076) has passed
Following test case also passed with manual test:

  1. ./ack_cli.py -n network.conf –m CPU
  2. ./ack_cli.py -n network.conf –m LSTOR
  3. ./ack_cli.py -n network.conf –m OPS
  4. ./ack_cli.py -n network.conf –m NET
  5. ./ack_cli.py -n network.conf –m ALL
  6. ./ack_cli.py -n network.conf -o "run_classes=test"
  7. ./ack_cli.py –n network.conf –o
    "run_classes=network_tests.MulticastTestClass
    network_tests.IntraHostSRIOVTestClass2
    operations_tests.CrashDumpTestClass"

Signed-off-by: Catherine Liu <catherine.liu@cloud.com>
Signed-off-by: Catherine Liu <catherine.liu@cloud.com>
def normalize_test_class_name(n):
while n.startswith("autocertkit."):
n = n[11:]
return n
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't see why we need this function.

However, if there is a failure such that the ack-submission package is not created, then we would ask that you submit the following:

- Server Status Report - this can be obtained either by either running the ‘xen-bugtool y’ command on the coordinator host, or by using XenCenter (Tools - Get Server Status Report).
- Server Status Report - this can be obtained either by either running the ‘xen-bugtool -y’ command on the coordinator host, or by using XenCenter (Tools - Get Server Status Report).
Copy link
Collaborator

Choose a reason for hiding this comment

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

It's not introduced in this PR, but there're two either: obtained either by either

if "run_classes" not in config:
return

from test_generators import enumerate_all_test_classes
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think it's necessary to import here, as test_generators is already imported at top of the file.

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