mirror of
https://github.com/actions/runner.git
synced 2026-01-08 11:21:13 +08:00
Add edge case for heredoc
This commit is contained in:
@@ -238,6 +238,7 @@ namespace GitHub.Runner.Common.Tests.Worker
|
|||||||
"MY_KEY_4<<EOF",
|
"MY_KEY_4<<EOF",
|
||||||
"EOF EOF",
|
"EOF EOF",
|
||||||
"EOF",
|
"EOF",
|
||||||
|
"MY_KEY_5=abc << def",
|
||||||
};
|
};
|
||||||
TestUtil.WriteContent(stateFile, content);
|
TestUtil.WriteContent(stateFile, content);
|
||||||
_fileCmdExtension.ProcessCommand(_executionContext.Object, stateFile, null);
|
_fileCmdExtension.ProcessCommand(_executionContext.Object, stateFile, null);
|
||||||
@@ -247,6 +248,7 @@ namespace GitHub.Runner.Common.Tests.Worker
|
|||||||
Assert.Equal($"hello=two", _store["MY_KEY_2"]);
|
Assert.Equal($"hello=two", _store["MY_KEY_2"]);
|
||||||
Assert.Equal($" EOF", _store["MY_KEY_3"]);
|
Assert.Equal($" EOF", _store["MY_KEY_3"]);
|
||||||
Assert.Equal($"EOF EOF", _store["MY_KEY_4"]);
|
Assert.Equal($"EOF EOF", _store["MY_KEY_4"]);
|
||||||
|
Assert.Equal($"abc << def", _store["MY_KEY_5"]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user