mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 10:43:19 -03:00
Merge #7402: [devtools] github-merge get toplevel dir without extra whitespace
5ed2f16
[devtools] github-merge get toplevel dir without extra whitespace (Andrew C)
This commit is contained in:
commit
6a5932bf2a
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue