test-bugzilla-files/commands.sh | 2 +- test-bugzilla-files/new-control.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
New commits: commit 5e248119c01e927812fa2acbb129a6f38acd631b Author: Gabor Kelemen <[email protected]> AuthorDate: Thu Aug 11 22:59:08 2022 +0200 Commit: Caolán McNamara <[email protected]> CommitDate: Wed Sep 14 11:44:55 2022 +0200 Use SRCDIR more Change-Id: Ic652a2da63d85cf9d3035656e4b221ef47cc4f65 Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/138716 Reviewed-by: Caolán McNamara <[email protected]> Tested-by: Caolán McNamara <[email protected]> diff --git a/test-bugzilla-files/commands.sh b/test-bugzilla-files/commands.sh index 5ff6dd2..ac25ca4 100755 --- a/test-bugzilla-files/commands.sh +++ b/test-bugzilla-files/commands.sh @@ -14,7 +14,7 @@ cd ~/source/dev-tools/ if [ -z "$CRASHTEST_READONLY_DEVTOOLS" ]; then git pull -r fi -cd ~/source/libo-core/ +cd "$SRCDIR" if [ -z "$CRASHTEST_READONLY_CORE" ]; then git pull -r fi diff --git a/test-bugzilla-files/new-control.py b/test-bugzilla-files/new-control.py index e8cc89f..e50f01f 100644 --- a/test-bugzilla-files/new-control.py +++ b/test-bugzilla-files/new-control.py @@ -69,7 +69,7 @@ def saveAsPreviousState(exported_files): os.makedirs(os.path.dirname("/srv/crashtestdata/previous"+file[len(prefix):]), exist_ok=True) copyfile(file, "/srv/crashtestdata/previous"+file[len(prefix):]) - SHAcmd = "cd ~/source/libo-core/ && git rev-parse HEAD" + SHAcmd = "cd $SRCDIR && git rev-parse HEAD" previous_SHA = str(subprocess.check_output(SHAcmd, shell=True), encoding='utf-8') previous_SHA_file = open("/srv/crashtestdata/previous/hash.txt", "w") previous_SHA_file.write(previous_SHA)
