Fix Gauntlet always recopying obb's to target device. This seem to only happen when running locally and was caused by whitespace not being trimmed from the file names after parsing 'ls' results from ADB. Since this hasn't been seen on the test farm, I'm think this has to be a device specific or maybe a Windows/Linux isse.

[at]Josh.Engebretson


#ROBOMERGE-SOURCE: CL 7883158 via CL 7883183 via CL 7883188 via CL 7915274
#ROBOMERGE-BOT: (v389-7813075)

[CL 7915496 by justin marcus in Main branch]
This commit is contained in:
justin marcus
2019-08-08 23:38:17 -04:00
parent 5789fec570
commit 11b919aab1
@@ -965,7 +965,13 @@ namespace Gauntlet
// if != 0 then no folder exists
if (AdbResult.ExitCode == 0)
{
IEnumerable<string> CurrentRemoteFileList = AdbResult.Output.Replace("\r\n", "\n").Split('\n');
string[] Delimiters = { "\r\n", "\n" };
string[] CurrentRemoteFileList = AdbResult.Output.Split(Delimiters, StringSplitOptions.RemoveEmptyEntries);
for (int i = 0; i < CurrentRemoteFileList.Length; ++i)
{
CurrentRemoteFileList[i] = CurrentRemoteFileList[i].Trim();
}
IEnumerable<string> NewRemoteFileList = FilesToInstall.Values.Select(F => Path.GetFileName(F));
// delete any files that should not be there