fix(shadow): capture and validate inbound task evidence for v3.4
This commit is contained in:
@@ -11,12 +11,17 @@ class Sqlcmd13OutputFixture
|
||||
Console.WriteLine("123 sun.tools.jps.Jps -lv");
|
||||
return 0;
|
||||
}
|
||||
if (Array.IndexOf(args, "-Q") >= 0) return 0;
|
||||
int input = Array.IndexOf(args, "-i");
|
||||
if (input < 0) return 86;
|
||||
string inputName = Path.GetFileName(args[input + 1]);
|
||||
Console.WriteLine("FIXTURE_INPUT=" + inputName);
|
||||
if (inputName == "shadow-v34-schema-check.sql")
|
||||
return Array.IndexOf(args, "FAIL_SCHEMA") >= 0 ? 67 : 0;
|
||||
if (inputName == "upgrade-shadow-v3-to-v33.sql" && Array.IndexOf(args, "FAIL_V33") >= 0)
|
||||
return 33;
|
||||
if (inputName == "upgrade-shadow-v33-to-v34.sql" && Array.IndexOf(args, "FAIL_V34") >= 0)
|
||||
return 34;
|
||||
foreach (string line in File.ReadAllLines(args[input + 1]))
|
||||
{
|
||||
if (!line.StartsWith(":out ")) continue;
|
||||
|
||||
Reference in New Issue
Block a user