Initial debugging of test completion process
This commit is contained in:
parent
a81392ca75
commit
87e483c43e
@ -380,6 +380,7 @@ namespace EduNetworkBuilder
|
||||
public static int PacketDamageDistance = 25;
|
||||
|
||||
public static bool DebugActions = true;
|
||||
public static bool DebugTests = true;
|
||||
|
||||
public static int NumBadPackets = 7; //the number of packets to spray out
|
||||
|
||||
|
@ -452,11 +452,17 @@ namespace EduNetworkBuilder
|
||||
PacketNumber = PacketID; //Track the packetID of the first packet to complete the task
|
||||
NB.PlaySound(NBSoundType.success);
|
||||
NB.MarkToUpdate();
|
||||
if (NB.DebugTests) { Console.WriteLine(" Marking Test Complete: " + TestDumpString()); }
|
||||
|
||||
}
|
||||
TaskWasDone = true;
|
||||
}
|
||||
|
||||
|
||||
public string TestDumpString()
|
||||
{
|
||||
string OurStatus = sHost + " -> " + dHost + " " + TheTest.ToString();
|
||||
return OurStatus;
|
||||
}
|
||||
public string GetInterfaceFromVLANInterfaceRequirement()
|
||||
{
|
||||
Match result = Regex.Match(dHost, @"(?<interface>[A-z:0-9]+) - (?<id>\d+)");
|
||||
|
Loading…
Reference in New Issue
Block a user