Make test directory for fsx configurable



git-svn-id: http://test.kernel.org/svn/autotest/trunk@260 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/tests/fsx/fsx.py b/tests/fsx/fsx.py
index cee1ff1..9855fac 100755
--- a/tests/fsx/fsx.py
+++ b/tests/fsx/fsx.py
@@ -26,9 +26,11 @@
 		system(self.make_flags + ' make fsx-linux')
 
 
-	def execute(self, repeat = '100000'):
+	def execute(self, testdir = None, repeat = '100000'):
 		args = '-N ' + repeat
-		os.chdir(self.tmpdir)
+		if not testdir:
+			testdir = self.tmpdir
+		os.chdir(testdir)
 		libs = self.autodir+'/deps/libaio/lib/'
 		ld_path = prepend_path(libs, environ('LD_LIBRARY_PATH'))
 		var_ld_path = 'LD_LIBRARY_PATH=' + ld_path