Skip to content

Commit 0a4042e

Browse files
committed
cleanup external repos after tests are done
1 parent 46d4231 commit 0a4042e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,11 @@ def run_project(reponame, test_framework, passed_array, browser_url)
3939
execute("cd #{repo_path}#{reponame} && npm install")
4040
execute("cd #{repo_path}#{reponame} && cp #{conf_path}#{reponame}.json #{repo_path}#{reponame}/browserstack.json")
4141
pid = runBg("cd #{repo_path}#{reponame} && ../../../bin/cli.js", 1, "#{test_framework}-#{reponame}", passed_array)
42+
sleep(1)
4243
execute("open http://localhost:8888/#{browser_url}")
4344
Process.wait(pid)
4445
sleep(1)
46+
execute("cd #{repo_path}#{reponame} && git clean -f -d && git reset --hard")
4547
end
4648

4749
def qunit

0 commit comments

Comments
 (0)