Skip to content

Commit 29cf4fc

Browse files
committed
Adding a timeout parameter for rm -rf command
Without this timeout, command is timing out, even while rm -rf is on progress. This resulting in CI builds failure. Signed-off-by: vrbagalkot <venkat.rao.bagalkote@ibm.com>
1 parent cf0f762 commit 29cf4fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testcases/OpTestKernelTest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def is_url(path):
8282
if urlparse(path).scheme in valid_schemes:
8383
return True
8484
return False
85-
self.con.run_command("if [ -d {} ]; then rm -rf {}; fi".format(self.home,self.home))
85+
self.con.run_command("if [ -d {} ]; then rm -rf {}; fi".format(self.home,self.home),timeout=600)
8686
self.con.run_command("if [ ! -d {} ]; then mkdir -p {}; fi".format(self.home,self.home))
8787
self.con.run_command("cd {}".format(self.home))
8888
if not self.branch:

0 commit comments

Comments
 (0)