From 655e4a4cfeb82ea88b63adab0ea53d172113d9d9 Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Tue, 6 Sep 2011 11:29:04 -0700 Subject: [PATCH] locktest: don't fail cleanup if the dir doesn't exist We're doing this the cheapest way possible: make the dir! Signed-off-by: Greg Farnum --- teuthology/task/locktest.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/teuthology/task/locktest.py b/teuthology/task/locktest.py index 2aaa30be4bd1e..da0d517e0d061 100755 --- a/teuthology/task/locktest.py +++ b/teuthology/task/locktest.py @@ -100,6 +100,8 @@ def task(ctx, config): log.info('cleaning up host dir') host.run( args=[ + 'mkdir', '-p', '/tmp/cephtest/locktest', + run.Raw('&&'), 'rm', '-f', '/tmp/cephtest/locktest/locktest.c', run.Raw('&&'), 'rm', '-f', '/tmp/cephtest/locktest/locktest', @@ -111,6 +113,8 @@ def task(ctx, config): log.info('cleaning up client dir') client.run( args=[ + 'mkdir', '-p', '/tmp/cephtest/locktest', + run.Raw('&&'), 'rm', '-f', '/tmp/cephtest/locktest/locktest.c', run.Raw('&&'), 'rm', '-f', '/tmp/cephtest/locktest/locktest', -- 2.39.5