瀏覽代碼

[devtools] github-merge get toplevel dir without extra whitespace

Fixes a bug in github merge when it runs the tests where the toplevel directory has an extra '\n' appended to the path string. Now it doesn't.
pull/117/head
Andrew C 5 年之前
父節點
當前提交
7d99dee286
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      contrib/devtools/github-merge.py

+ 1
- 1
contrib/devtools/github-merge.py 查看文件

@@ -165,7 +165,7 @@ def main():
# Run test command if configured.
if testcmd:
# Go up to the repository's root.
toplevel = subprocess.check_output([GIT,'rev-parse','--show-toplevel'])
toplevel = subprocess.check_output([GIT,'rev-parse','--show-toplevel']).strip()
os.chdir(toplevel)
if subprocess.call(testcmd,shell=True):
print("ERROR: Running %s failed." % testcmd,file=stderr)

Loading…
取消
儲存