add support for escaping for zip2zip

Change-Id: I6c2f39e24247752de065fd3116f670639322b943
Bug: 270896651
Test: zip2zip tests
This commit is contained in:
Alix
2023-04-07 19:42:02 +00:00
parent 7bfe443875
commit c6a918aa11
2 changed files with 7 additions and 13 deletions

View File

@@ -38,13 +38,6 @@ var testCases = []struct {
storedFiles []string
err error
}{
{
name: "unsupported \\",
args: []string{"a\\b:b"},
err: fmt.Errorf("\\ characters are not currently supported"),
},
{ // This is modelled after the update package build rules in build/make/core/Makefile
name: "filter globs",
@@ -406,6 +399,13 @@ var testCases = []struct {
"b/a/b",
},
},
{
name: "escaping",
inputFiles: []string{"a"},
args: []string{"\\a"},
outputFiles: []string{"a"},
},
}
func errorString(e error) string {