Skip to content

Commit

Permalink
added check z test
Browse files Browse the repository at this point in the history
  • Loading branch information
annaibm committed Apr 10, 2024
1 parent 90f2012 commit 6d54b04
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/org/testKitGen/TestInfoParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -539,10 +539,18 @@ private boolean matchPlat(String fullSpec, String pr) {
if (prSplitOnDot[0].equals("arch") && (prSplitOnDot.length == 3)) {
String microArchVersion = prSplitOnDot[2];
String environmentMicroArch = arg.getMicroArch();
boolean isZCharMatch = environmentMicroArch.startsWith(microArchVersion.substring(0, 1));
boolean isZStart = microArchVersion.startsWith("z") && environmentMicroArch.startsWith("z");
if (!(isZCharMatch || isZStart)) {
System.out.println("Debug: The environment microarchitecture does not match required starting character or 'z' prefix.");
return false;
}
if (!microArchVersion.startsWith("z")){
return false;
}

if (!environmentMicroArch.startsWith(microArchVersion.substring(0, 1))) {
return false;
}
if (microArchVersion.endsWith("+")){
return isVersionCompare(microArchVersion,environmentMicroArch);
}else {
Expand Down

0 comments on commit 6d54b04

Please sign in to comment.