skip tests without directive, and escape * in ubuntu run

This commit is contained in:
Nikita Smith
2026-06-02 12:11:00 -07:00
committed by Ryan Fleury
parent 3a109a7343
commit a151df283f
3 changed files with 12 additions and 5 deletions
+2 -1
View File
@@ -1449,5 +1449,6 @@ t_entry_point(CmdLine *cmdline)
}
scratch_end(scratch);
// TODO: return exit_code;
exit(exit_code);
}
+7 -1
View File
@@ -987,8 +987,14 @@ T_RunSig(dbg_script_runner)
}
}
// if test does not have any directive -> skip
U64 total_directive_count = 0;
for EachIndex(i, ArrayCount(script.directives[OperatingSystem_CURRENT])) {
total_directive_count += script.directives[OperatingSystem_CURRENT][i].count;
}
// is skip flag set? -> exit
if (g_build_only || script.directives[OperatingSystem_CURRENT][T_DbgScriptDirectiveKind_Skip].count) {
if (g_build_only || total_directive_count == 0 || script.directives[OperatingSystem_CURRENT][T_DbgScriptDirectiveKind_Skip].count) {
result_out->status = T_RunStatus_Skip;
goto exit;
}