From 35850ff71fd79198e601cc83de054c7f73214971 Mon Sep 17 00:00:00 2001 From: "houssainy@google.com" Date: Mon, 22 Sep 2014 15:24:56 +0000 Subject: [PATCH] Adding test file path as argument of the rtcBot run command's arguments. The new command to run rtcBot is:- node test.js 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 --- webrtc/tools/rtcbot/test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webrtc/tools/rtcbot/test.js b/webrtc/tools/rtcbot/test.js index f731773979..36675ccbf1 100644 --- a/webrtc/tools/rtcbot/test.js +++ b/webrtc/tools/rtcbot/test.js @@ -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]);