-
Notifications
You must be signed in to change notification settings - Fork 56
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
run/push: support "subargs" for forwarding to remote process. Fixes gh-732 #806
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -284,7 +284,8 @@ exports['Tessel.prototype.deploy'] = { | |
test.expect(12); | ||
deployTestCode(this.tessel, { | ||
push: true, | ||
single: false | ||
single: false, | ||
subargs: [], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should pass without the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, because this test runs code that exists at a point in which all default properties are resolved, so the |
||
}, (error) => { | ||
if (error) { | ||
test.ok(false, `deployTestCode failed: ${error.toString()}`); | ||
|
@@ -538,8 +539,10 @@ exports['deploy.run'] = { | |
deploy.run(this.tessel, { | ||
entryPoint: entryPoint, | ||
lang: deployment.js, | ||
subargs: ['--key=value'], | ||
}).then(() => { | ||
test.deepEqual(this.exec.lastCall.args[0], [deployment.js.meta.binary, Tessel.REMOTE_RUN_PATH + entryPoint]); | ||
test.deepEqual( | ||
this.exec.lastCall.args[0], [deployment.js.meta.binary, Tessel.REMOTE_RUN_PATH + entryPoint, '--key=value']); | ||
test.done(); | ||
}); | ||
}, | ||
|
@@ -572,6 +575,7 @@ exports['deploy.run'] = { | |
deploy.run(this.tessel, { | ||
entryPoint: entryPoint, | ||
lang: deployment.rs, | ||
subargs: [], | ||
}).then(() => { | ||
test.done(); | ||
}); | ||
|
@@ -591,6 +595,7 @@ exports['deploy.run'] = { | |
deploy.run(this.tessel, { | ||
resolvedEntryPoint: 'foo', | ||
lang: deployment.js, | ||
subargs: [], | ||
}).then(() => { | ||
test.equal(this.postRun.callCount, 1); | ||
test.done(); | ||
|
@@ -640,7 +645,8 @@ exports['deploy.createShellScript'] = { | |
|
||
var opts = { | ||
lang: deployment.js, | ||
resolvedEntryPoint: 'foo' | ||
resolvedEntryPoint: 'foo', | ||
subargs: ['--key=value'], | ||
}; | ||
|
||
deploy.createShellScript(this.tessel, opts).then(() => { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EDIT: I deleted the line note because I'm adding the content as a comment in the source