Skip to content

Commit

Permalink
Issue #9: making pig test re-runnable
Browse files Browse the repository at this point in the history
  • Loading branch information
sriramkrishnan committed Oct 25, 2013
1 parent c0ed150 commit e11ad2d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions genie-web/src/test/python/jobs/pigJobTestWithAttachments.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def testJsonSubmitjob():
# write out a temporary file with our query/dependencies
query = tempfile.NamedTemporaryFile(delete=False)
name = query.name
query.write("fs -copyFromLocal pig.q pig.q; cmd = load 'pig.q'; dump cmd;")
query.write("fs -rm genie_pig_test.q; fs -copyFromLocal genie_pig_test.q genie_pig_test.q; cmd = load 'genie_pig_test.q'; dump cmd;")
query.close()

# read it back in as base64 encoded binary
Expand All @@ -59,10 +59,10 @@ def testJsonSubmitjob():
"jobType": "pig",
"configuration": "prod",
"schedule": "adHoc",
"cmdArgs": "-f pig.q",
"cmdArgs": "-f genie_pig_test.q",
"attachments": {
"data": "''' + contents + '''",
"name": "pig.q"
"name": "genie_pig_test.q"
}
}
}
Expand Down

0 comments on commit e11ad2d

Please sign in to comment.