Skip to content

Commit

Permalink
Fix tests that removes .sos
Browse files Browse the repository at this point in the history
  • Loading branch information
Peng committed Feb 10, 2017
1 parent 23047b8 commit 9bc2cbd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/test_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

import os
import time
import shutil
import unittest
from io import StringIO

Expand All @@ -32,10 +31,12 @@
from sos.sos_executor import Base_Executor, MP_Executor
from sos.target import FileTarget

import subprocess

class TestDAG(unittest.TestCase):
def setUp(self):
env.reset()
subprocess.call('sos remove -s', shell=True)
self.temp_files = []

def tearDown(self):
Expand Down Expand Up @@ -957,8 +958,6 @@ def testReverseSharedVariable(self):

def testChainedDepends(self):
'''Test chain dependent'''
shutil.rmtree('.sos')
os.makedirs('.sos/.runtime')
script = SoS_Script(r'''
# this step provides variable `var`
[index: provides='{filename}.bam.bai']
Expand Down

0 comments on commit 9bc2cbd

Please sign in to comment.