mirror of
https://github.com/actions/runner.git
synced 2025-12-10 20:36:49 +00:00
updating test cases and fixing normal style check
This commit is contained in:
@@ -364,8 +364,8 @@ namespace GitHub.Runner.Worker
|
||||
|
||||
output = endIndex > startIndex ? text.Substring(startIndex, endIndex - startIndex) : string.Empty;
|
||||
}
|
||||
// Normal style NAME=VALUE
|
||||
else if (equalsIndex >= 0 && heredocIndex < 0)
|
||||
// Normal style NAME=VALUE, can have << in the value.
|
||||
else if (equalsIndex >= 0)
|
||||
{
|
||||
var split = line.Split(new[] { '=' }, 2, StringSplitOptions.None);
|
||||
if (string.IsNullOrEmpty(line))
|
||||
|
||||
@@ -242,9 +242,10 @@ namespace GitHub.Runner.Common.Tests.Worker
|
||||
"MY_KEY_6= <<EOF",
|
||||
"white space test",
|
||||
"EOF",
|
||||
"MY_KEY_7 << =EOF=",
|
||||
"MY_KEY_7 <<=EOF=",
|
||||
"abc",
|
||||
"=EOF="
|
||||
"=EOF=",
|
||||
string.Empty
|
||||
};
|
||||
TestUtil.WriteContent(stateFile, content);
|
||||
_fileCmdExtension.ProcessCommand(_executionContext.Object, stateFile, null);
|
||||
|
||||
Reference in New Issue
Block a user