Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix passing user defined args to libfuzzer job #44

Merged
merged 2 commits into from Sep 26, 2019
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Prev

Fix typo recieved -> received

  • Loading branch information
bayandin committed Sep 26, 2019
commit c1c34f2e96dbb6fee47ef0df718c3aefad04cf8a
@@ -45,7 +45,7 @@ func TestDownloadAndExtractCorpus(t *testing.T) {
err = tc.client.DownloadAndExtractCorpus(dir, tc.target)
if err != nil {
if err.Error() != tc.err {
t.Errorf("was expecting %s recieved %s", tc.err, err.Error())
t.Errorf("was expecting %s received %s", tc.err, err.Error())
}
} else {
if tc.err != "" {
@@ -95,7 +95,7 @@ func TestCreateLocalJob(t *testing.T) {
err := tc.client.CreateLocalJob(newJob, []string{"testdata/fuzzer.tar.gz"})
if err != nil {
if err.Error() != tc.err {
t.Errorf("was expecting %s recieved %s", tc.err, err.Error())
t.Errorf("was expecting %s received %s", tc.err, err.Error())
}
} else {
if tc.err != "" {
@@ -34,11 +34,11 @@ var jobCmd = &cobra.Command{
Args: cobra.MinimumNArgs(2),
Run: func(cmd *cobra.Command, args []string) {
if newJob.Type != "fuzzing" && newJob.Type != "regression" && newJob.Type != "local-regression" {
log.Fatalf("--type should be either fuzzing, regression or local-regression. Recieved: %s", newJob.Type)
log.Fatalf("--type should be either fuzzing, regression or local-regression. Received: %s", newJob.Type)
}

if newJob.Engine != "libfuzzer" && newJob.Engine != "jqf" {
log.Fatalf("--engine should be either libfuzzer or jqf. Recieved: %s", newJob.Type)
log.Fatalf("--engine should be either libfuzzer or jqf. Received: %s", newJob.Type)
}

image := client.HostToDocker[newJob.Host]
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.