Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
LAPTOP-7V78BBO2\ydf19 committed Jan 4, 2022
1 parent dc28121 commit 4c6e4d3
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions tests/git_nb_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import time


def getstatusoutput(cmd):
try:
data = subprocess.check_output(cmd, shell=True, universal_newlines=True,
Expand All @@ -14,6 +15,7 @@ def getstatusoutput(cmd):
data = data[:-1]
return exitcode, data


def do_cmd(cmd_strx):
print(f'执行 {cmd_strx}')
retx = getstatusoutput(cmd_strx)
Expand All @@ -23,6 +25,7 @@ def do_cmd(cmd_strx):
print(retx[1], '\n')
return retx


t0 = time.time()

do_cmd('git pull')
Expand All @@ -33,16 +36,8 @@ def do_cmd(cmd_strx):

do_cmd('git commit -m commit')



do_cmd('git push origin')

# print(subprocess.getstatusoutput('git push github'))
print(f'spend_time {time.time() - t0}')
time.sleep(100000)






0 comments on commit 4c6e4d3

Please sign in to comment.