Skip to content

Commit

Permalink
Merge pull request #28 from timbalam/master
Browse files Browse the repository at this point in the history
Make bamm filter test portable
  • Loading branch information
wwood committed Aug 5, 2015
2 parents 8e2fd0a + 4b9e98d commit 69e42fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bamm/tests/test_bamFilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class TestBamFilter:
def setup_class(self):
"""Setup class variables before any tests."""

self.bamm = os.path.join("~", "git", "BamM", "bin", "bamm")
#self.bamm = os.path.join("~", "git", "BamM", "bin", "bamm")
self.dataDir = os.path.join(os.path.split(__file__)[0], "filter_test_data")
self.bamNames = ["1", "2"]

Expand Down Expand Up @@ -112,8 +112,8 @@ def rmTestFile(self, name):


def generate_bam(self, name, args):
cmd = "%s filter -b %s -o %s %s" % (self.bamm, self.bamFiles[name], self.dataDir, " ".join(args))
subprocess.call(cmd, shell=True)
cmd = "bamm filter -b %s -o %s %s" % (self.bamFiles[name], self.dataDir, " ".join(args))
subprocess.check_call(cmd, shell=True)


def assert_equal_query_sequences(self, out, expected):
Expand Down

0 comments on commit 69e42fe

Please sign in to comment.