32fa0613863022090e51b45dd73d3fae57e57639,test/test_remote.py,TestRemote,testTaskSpooler,#TestRemote#,121

Before Change


        out = subprocess.check_output("sos status {} -c docker.yml -q docker".format(tasks), shell=True).decode()
        self.assertGreater(out.count("running"), 1)
        // local should all be pending but we might have results from before
        subprocess.call("cd ~/.sos/tasks; rm -f {}".format(" ".join(x+".res" for x in res["pending_tasks"])), shell=True)
        // wait another 20 seconds?
        time.sleep(10)
        out = subprocess.check_output("sos status {} -c docker.yml -q docker".format(tasks), shell=True).decode()

After Change


        self.assertEqual(out.count("completed"), len(res["pending_tasks"]))

    def testTaskSpooler(self):
        subprocess.check_output("cd ~/.sos/tasks; rm -f *.res *.sh *.status", shell=True).decode()
        script = SoS_Script("""
[10]
input: for_each={"i": range(5)}
task:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: vatlab/SoS
Commit Name: 32fa0613863022090e51b45dd73d3fae57e57639
Time: 2017-03-31
Author: ben.bog@gmail.com
File Name: test/test_remote.py
Class Name: TestRemote
Method Name: testTaskSpooler


Project Name: pytorch/text
Commit Name: 58897b84bffe8df29c05229bcafe74618a12db19
Time: 2017-08-10
Author: Bryan.McCann.is@gmail.com
File Name: torchtext/datasets/trec.py
Class Name: TREC
Method Name: __init__


Project Name: arraiy/torchgeometry
Commit Name: 206798edabf99a8ee4bb03ffba25968d2057bb18
Time: 2020-07-30
Author: anguelos.nicolaou@gmail.com
File Name: setup.py
Class Name:
Method Name: