diff options
author | 2021-02-22 13:03:08 -0800 | |
---|---|---|
committer | 2021-02-22 13:03:08 -0800 | |
commit | 24bff4e47403a171e2da2d4f0fcdf941aeffec9c (patch) | |
tree | 854e2e26030aca695419c8c2887914c2de5bba53 /Tools/Release/updatePICSAR.py | |
parent | f43dac64920270a7035d0e7b9244dcaa89935f0d (diff) | |
download | WarpX-24bff4e47403a171e2da2d4f0fcdf941aeffec9c.tar.gz WarpX-24bff4e47403a171e2da2d4f0fcdf941aeffec9c.tar.zst WarpX-24bff4e47403a171e2da2d4f0fcdf941aeffec9c.zip |
Fix: run_test.sh - fail on error & fix clone (#1729)
* Fix: run_test.sh clone (fail on error)
* regtest.py: WARPX_TEST_COMMIT / --source_git_hash unused
They have no effect, looks very ancient.
* run_test.sh: Fix commit checkout
`git clone --branch` does not support commits as SHA
Diffstat (limited to 'Tools/Release/updatePICSAR.py')
-rwxr-xr-x | Tools/Release/updatePICSAR.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/Release/updatePICSAR.py b/Tools/Release/updatePICSAR.py index a3c3f79fc..bb17d5132 100755 --- a/Tools/Release/updatePICSAR.py +++ b/Tools/Release/updatePICSAR.py @@ -100,9 +100,9 @@ run_test_path = str(REPO_DIR.joinpath("run_test.sh")) with open(run_test_path, encoding='utf-8') as f: run_test_content = f.read() # branch/commit/tag (git fetcher) version - # git clone --branch development https://github.com/PICSAR-Codes/PICSAR.git + # cd picsar && git checkout COMMIT_TAG_OR_BRANCH && cd - run_test_content = re.sub( - r'(.*git\s+clone\s+\-\-branch\s+)(.+)(\s+https://github\.com/ECP\-WarpX/picsar\.git)', + r'(.*cd\s+picsar.+git checkout\s+)(.+)(\s+&&\s.*)', r'\g<1>{}\g<3>'.format(PICSAR_new_branch), run_test_content, flags = re.MULTILINE) |