On 01/22/2013 04:44 AM, Feng Yang wrote:
Signed-off-by: Feng Yang <[email protected]>

Applied, thanks!

---
  aiostress/aiostress.py |    3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/aiostress/aiostress.py b/aiostress/aiostress.py
index c3cd9e4..1061597 100644
--- a/aiostress/aiostress.py
+++ b/aiostress/aiostress.py
@@ -17,7 +17,8 @@ class aiostress(test.test):

      # ftp://ftp.suse.com/pub/people/mason/utils/aio-stress.c
      def setup(self, tarball = None):
-        os.mkdir(self.srcdir)
+        if not os.path.exists(self.srcdir):
+            os.mkdir(self.srcdir)
          os.chdir(self.srcdir)
          utils.system('cp ' + self.bindir+'/aio-stress.c .')
          self.gcc_flags += ' -Wall -lpthread -laio'


_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel

Reply via email to