mirror of
https://github.com/reactos/syzkaller.git
synced 2025-02-17 10:10:08 +00:00
all: reformat with Go 1.10
This commit is contained in:
parent
13f1d0047a
commit
a39e52b1cd
@ -86,8 +86,8 @@ bash
|
||||
return fmt.Errorf("failed to write image file: %v", err)
|
||||
}
|
||||
for src, dst := range map[string]string{
|
||||
".config": "kernel.config",
|
||||
"key": "key",
|
||||
".config": "kernel.config",
|
||||
"key": "key",
|
||||
"obj/kern/akaros-kernel": "kernel",
|
||||
"obj/kern/akaros-kernel-64b": "obj/akaros-kernel-64b",
|
||||
} {
|
||||
|
@ -28,7 +28,7 @@ func (fu fuchsia) build(targetArch, vmType, kernelDir, outputDir, compiler, user
|
||||
}
|
||||
for src, dst := range map[string]string{
|
||||
"out/" + arch + "/obj/build/images/fvm.blk": "image",
|
||||
".ssh/pkey": "key",
|
||||
".ssh/pkey": "key",
|
||||
"out/build-zircon/build-" + arch + "/zircon.elf": "obj/zircon.elf",
|
||||
"out/build-zircon/build-" + arch + "/multiboot.bin": "kernel",
|
||||
"out/" + arch + "/fuchsia.zbi": "initrd",
|
||||
|
@ -31,13 +31,13 @@ func TestCheckRepoAddress(t *testing.T) {
|
||||
"https://anonscm.debian.org/git/kernel/linux.git": true,
|
||||
"git://kernel.ubuntu.com/ubuntu/ubuntu-zesty.git": true,
|
||||
"http://host.xz:123/path/to/repo.git/": true,
|
||||
"": false,
|
||||
"foobar": false,
|
||||
"linux-next": false,
|
||||
"foo://kernel.ubuntu.com/ubuntu/ubuntu-zesty.git": false,
|
||||
"git://kernel/ubuntu.git": false,
|
||||
"git://kernel.com/ubuntu": false,
|
||||
"gitgit://kernel.ubuntu.com/ubuntu/ubuntu-zesty.git": false,
|
||||
"": false,
|
||||
"foobar": false,
|
||||
"linux-next": false,
|
||||
"foo://kernel.ubuntu.com/ubuntu/ubuntu-zesty.git": false,
|
||||
"git://kernel/ubuntu.git": false,
|
||||
"git://kernel.com/ubuntu": false,
|
||||
"gitgit://kernel.ubuntu.com/ubuntu/ubuntu-zesty.git": false,
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -219,11 +219,11 @@ func TestEscapingPaths(t *testing.T) {
|
||||
"file/../../file": true,
|
||||
"../file": true,
|
||||
"./file/../../file/file": true,
|
||||
"": false,
|
||||
".": false,
|
||||
"file": false,
|
||||
"./file": false,
|
||||
"./file/..": false,
|
||||
"": false,
|
||||
".": false,
|
||||
"file": false,
|
||||
"./file": false,
|
||||
"./file/..": false,
|
||||
}
|
||||
for path, want := range paths {
|
||||
got := escapingFilename(path)
|
||||
|
Loading…
x
Reference in New Issue
Block a user