#!/usr/bin/python
from threading import Thread
import subprocess
from functions import *



def runTest(branch,os):
    subprocess.call(test_script + " " + branch + " " + os, shell=True)


for branch in branches:
    threads = []
    for os in OSs:
        instance = get_instance("Name","fogtesting-" + os)
        snapshot = get_snapshot("Name",os + '-clean')
        restore_snapshot_to_instance(snapshot,instance)
        threads.append(Thread(target=runTest,args=(branch,os)))
    time.sleep(20)
    # Start all the tests for this branch.
    for x in threads:
        x.start()
    # Wait for all of them to get done before proceeding.
    for x in threads:
        x.join()








@@ -83,18 +83,16 @@
 port *%0A%0A
-%0A%0A
 def runT
@@ -178,17 +178,20 @@
 l=True)%0A
-%0A
+    
 %0Afor bra
@@ -675,15 +675,8 @@
 .join()%0A
-%0A%0A%0A%0A%0A%0A%0A

remove whitespace