mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-10-05 23:45:42 +00:00
skip tests without directive, and escape * in ubuntu run
This commit is contained in:
committed by
Ryan Fleury
parent
3a109a7343
commit
a151df283f
@@ -1449,5 +1449,6 @@ t_entry_point(CmdLine *cmdline)
|
||||
}
|
||||
|
||||
scratch_end(scratch);
|
||||
// TODO: return exit_code;
|
||||
exit(exit_code);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user