diff --git a/testcases/OpTestKernelTest.py b/testcases/OpTestKernelTest.py index f163e81f..3ab2ad32 100644 --- a/testcases/OpTestKernelTest.py +++ b/testcases/OpTestKernelTest.py @@ -217,7 +217,7 @@ def runTest(self): self.con.run_command("cd {}".format(self.home)) if not self.branch: self.branch='master' - self.con.run_command("git clone --depth 1 -b {} {} linux".format( self.branch, self.repo),timeout=3000) + self.con.run_command("git clone -b {} {} linux".format( self.branch, self.repo),timeout=3000) self.con.run_command("cd linux") commit = self.con.run_command(" git log -1 --format=%H | sed -r 's/\x1B\[[0-9:]*[JKsu]//g'") self.con.run_command("cd ..") @@ -271,7 +271,7 @@ def runTest(self): self.con.run_command("cd {}".format(self.home)) if not self.branch: self.branch='master' - self.con.run_command("git clone --depth 1 -b {} {} linux".format( self.branch, self.repo),timeout=3000) + self.con.run_command("git clone -b {} {} linux".format( self.branch, self.repo),timeout=3000) self.con.run_command("cd linux") commit = self.con.run_command(" git log -1 --format=%H | sed -r 's/\x1B\[[0-9:]*[JKsu]//g'") self.con.run_command("cd ..")