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