Megatest

Artifact [e94703eae4]
Login

Artifact e94703eae433d50c6c99afcd698658b03f3506b8:

Ticket change [e94703eae4] - New ticket [64562cb2cd] On-startup checks for viable setup.. by matt on 2021-02-23 16:49:55.
D 2021-02-23T23:49:55.077
J icomment I\swould\slike\san\senhancement\sto\smegatest:\r\n\r\nA)\tA\ssetting\sunder\smegatest.config\sthat\sallows\sthe\sdefinition\r\nof\sa\spre-execution\sscript/hook/whatever\sthat\swill\srun\searly\r\non\sunder\sa\sminimal\smegatest\senvironment\s(i.e.\shas\sMT_*\svars\r\ndefined).\sFor\sexample:\r\n\r\n[checks]\r\nbefore_start\s\s=\s<script\s&\soptions\sto\scall\sbefore\sregression\sstart>\r\nbefore_launch\s=\s<script\s&\soptions\sto\scall\sbefore\stest\slaunch>\r\nafter_launch\s\s=\s<script\s&\soptions\sto\scall\safter\stest\slaunch>\r\n\r\nYou\sget\sthe\sidea.\sThe\sscript\smay\sbe\sthe\ssame\sin\sall\scases,\sjust\swith\r\noptions\sto\sidentify\sthe\s"phase/context"\sits\sbeing\scalled\sunder,\sfor\r\nexample:\r\n\r\n[checks]\r\nbefore_start\s\s=\scheckit.rb\s--start\s--pre\r\nbefore_launch\s=\scheckit.rb\s--launch\s--pre\r\nafter_launch\s\s=\scheckit.rb\s--launch\s--post\r\n\r\nIt\sdoesn't\sreally\smatter,\sjust\sso\slong\sas\sthe\sscript\sis\sdesigned\r\nand\sallowed\sto\sreturn\slogpro-style\sexit\scodes\s(0,\s2,\s3,\s4,\s5),\sand\r\nprint\stext\sto\sstdout\sthat\swill\sbe\scaptured\sby\smegatest\sfor\sdisplay.\r\n\r\nThe\s[checks]\ssection\sshould\sallow\sfor\seasy\sextension\sof\sother\sadditional\r\ncheck\shooks\sover\stime\sif\snecessary.\r\n\r\nB)\tA\smethod\sin\smegatest\sGUI\sto\spop-up\sa\sdialog\sbox\swith\sthe\stext\sprinted\r\nby\sthe\sscript,\sthe\serror\scode\sreported\s(unless\sits\sPASS\sor\sWARN),\sthat\r\nrequires\sthe\suser\sto\sclick\seither\s"I'll\sfix\sit",\sor\s"Proceed".\r\n\r\nC)\tThe\sresults\sof\sany\scheck\sscript\sshould\sappear\sunder\slogs/\susing\sthe\r\nsame\sname\sas\sthe\scheck,\sfor\sexample:\slogs/before_start.log.\sSince\sthe\r\nchecks\sare\sdone\son\sa\sper-execution\sbasis,\sany\snew\sexecution\swill\soverwrite\r\nexisting\slogs,\sso\susers\sneed\sto\sdeal\swith\sthe\sissue\srecorded\sbefore\r\nrunning\sagain\s(and\soverwriting\sthe\slogs).\r\n\r\nD)\tin\snon-GUI\smode\swhen\srunning\smegatest\sfrom\sthe\scommand\sline,\sany\sresult\r\nother\sthan\sPASS/WARN\sshould\scause\smegatest\sto\sstop\sexecution\sunless\sthe\r\nuser\sdecides\sto\srerun\swith\sthe\s-proceed\soption\s(which\sis\sa\sfallback\r\noverride\sin\scase\sthe\scheck\sscripts\shave\sproblems).\sBut\seven\sso,\sif\sthey\r\ndecide\son\sthis\soptions\sit\swill\sbe\svery\sclear\sto\suser\sand\sto\sus\sthat\sthey\r\nhave\sdone\sso\sdespite\sthe\sreported\sproblems.
J login matt
J mimetype text/plain
J severity Important
J status Open
J title On-startup\schecks\sfor\sviable\ssetup.
J type Feature_Request
K 64562cb2cd61a9f8cb4c729ca9c3cc672c07881e
U matt
Z f04f93755ffd4f447a5ffdfd4c174fbb