Skip to content

Commit a5776db

Browse files
authored
Merge pull request #915 from vrbagalkot/rm_rf_timeout
Adding a timeout parameter for rm -rf command
2 parents 01f5d54 + 29cf4fc commit a5776db

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)