Skip to content

Commit

Permalink
Adding test file path as argument of the rtcBot run command's arguments.
Browse files Browse the repository at this point in the history
The new command to run rtcBot is:-
node test.js <bot_type> <test_file_path>

R=andresp@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/31419004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@7263 4adac7df-926f-26a2-2b94-8c16560cd09d
  • Loading branch information
houssainy@google.com committed Sep 22, 2014
1 parent 64a2f10 commit 35850ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webrtc/tools/rtcbot/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ Test.prototype = {
},
}

function runTest(testfile) {
function runTest(botType, testfile) {
console.log("Running test: " + testfile);
var script = vm.createScript(fs.readFileSync(testfile), testfile);
script.runInNewContext({ test: new Test(process.argv[2]) });
script.runInNewContext({ test: new Test(botType) });
}

runTest("./test/webrtc_video_streaming.js");
runTest(process.argv[2], process.argv[3]);

0 comments on commit 35850ff

Please sign in to comment.