Skip to content

Commit

Permalink
Some changes are done in test_nestedfs.py..
Browse files Browse the repository at this point in the history
  • Loading branch information
rajshree committed Apr 13, 2011
1 parent d7d15f5 commit 3ef44ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/STF/test_nestedfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ def setUp(self):
self.d1 = self.host.getDisk()
disk = self.d1[0].diskname
(newenv, path) = lib.STFwrap.setupEnv()
(ret, stdout, stderr) = cmdQuery([path + "/nestedfs/setup.ksh" , disk], env=newenv, cwd=path+"/nestedfs")
(ret, stdout, stderr) = cmdQuery([path + "/nestedfs/setup.py" , disk], env=newenv, cwd=path+"/nestedfs")
self.assertEqual(ret, 0, "setup failed")
self.assertNotIn("ERROR:", stdout, "setup failed")
self.assertNotIn("ERROR:", stderr, "setup failed")

def cleanup(self):
(newenv, path) = lib.STFwrap.setupEnv()
cmdQuery([path + "/nestedfs/cleanup.ksh"], env=newenv, cwd=path+"/nestedfs")
cmdQuery([path + "/nestedfs/cleanup.py"], env=newenv, cwd=path+"/nestedfs")

def tearDown(self):
(newenv, path) = lib.STFwrap.setupEnv()
(ret, stdout, stderr) = cmdQuery([path + "/nestedfs/cleanup.ksh"], env=newenv, cwd=path+"/nestedfs")
(ret, stdout, stderr) = cmdQuery([path + "/nestedfs/cleanup.py"], env=newenv, cwd=path+"/nestedfs")
self.assertNotIn("ERROR:", stdout, "setup failed")
self.assertNotIn("ERROR:", stderr, "setup failed")
self.cleanup()
Expand All @@ -32,5 +32,5 @@ def tearDown(self):
getResources().putHost(self.host)

def test_nestedfs_001_pos(self):
lib.STFwrap.runScript(self, "/nestedfs/nestedfs_001_pos.ksh", retcheck=1)
lib.STFwrap.runScript(self, "/nestedfs/nestedfs_001_pos.py", retcheck=1)

0 comments on commit 3ef44ed

Please sign in to comment.