summaryrefslogtreecommitdiff
path: root/tcwg-upstream2gerrit.sh
AgeCommit message (Collapse)Author
2023-06-07Remove obsolete scriptsMaxim Kuvyrkov
Change-Id: I78e50e12cd2a2cd1ba239bf2d6cc93097976ed07
2023-03-08Do not "<output> | grep -q", use "<output> | grep -q ... >/dev/null" insteadMaxim Kuvyrkov
When 'grep' in invoked with -q option, it exits with the first match, and closes the input pipe. This will break the pipe and scripts running with "-o pipefail" will get unexpected results. Replace "<output> | grep -q", with "<output> | grep -q ... >/dev/null" throught our scripts. Leave "grep -q ... <input_file>" intact, since pipes are not involved. Change-Id: I9438919276c0d0e235600384a979b511e1a4edff
2022-09-07Make "git reset --hard" quietMaxim Kuvyrkov
Change-Id: Id6a43557384d05923547fe90a8f488fa3f35c04b
2020-04-28Shellcheck fixes round 3David Spickett
Now using the version that's present in the bionic images. Meaning we have more warnings but can also set the minimum level to ignore a lot of them. Fix the check for whether shellcheck supports --severity. (we have pipefail on, but we expect shellcheck to fail in this case) Change-Id: I296b8554591b7d327c75393e3924184abc6512b7
2020-04-22Various shellcheck warning fixesDavid Spickett
First round of low hanging fruit from the files with the fewest warnings. Change-Id: I60ad57b5bfb2f0be9bb6506252c820f44d055200
2018-11-26Don't ignore "null" values in variable expansionsMaxim Kuvyrkov
Replace ${var:-default} with ${var-default}. I learned something new about shell scripting today. From bash manual: === When not performing substring expansion, using the form described below (e.g., ‘:-’), Bash tests for a parameter that is unset or null. Omitting the colon results in a test only for a parameter that is unset. Put another way, if the colon is included, the operator tests for both parameter’s existence and that its value is not null; if the colon is omitted, the operator tests only for existence. === The immediate problem I need to fix is handling of host_aarchXX_excludecheck and host_x86_64_excludecheck parameters in tcwg-buildfarm.sh. With ":-" syntax the empty ("null") values are replaced by defaults, causing GCC testsuite to be ignored on aarchXX hosts when "--host_aarchXX_excludecheck ''" is given. There happens to be a single usage ":-" in ${rw:-rw} in start-container-qemu.sh, where ":-" is actually needed. Change-Id: Ibc8e070b698e1c76e2161eb65d40639b8cdec1f3
2018-01-31jenkins-helpers.sh: New helper convert_args_to_variablesMaxim Kuvyrkov
... to convert "--var val" and "++arr elem" arguments to variables. Use in tcwg-upstream2gerrit.sh Change-Id: I88bb8d6b366944626c71727227f12bdd33f7bb55
2018-01-25tcwg-upstream2gerrit.sh: Add 'filter' parameter.Christophe Lyon
If false (default), send the patch(es) for review if they apply. It true, only ask review if the patch(es) pass the filter: check if the patch(es) contain anything dealing with arm, thumb, or aarch64. Change-Id: I7dd0a9f175396bf898cdf9a696f275dff881fda7
2018-01-25tcwg-upstream2gerrit.sh: Call git am --abort if 'git am' failedChristophe Lyon
So that we leave the repo in a clean state for the next run. Change-Id: Ia5701e03ddca5dc009acd0691592cd6128336914
2018-01-25tcwg-upstream2gerrit.sh: Do not try to git reset on patch_file.Christophe Lyon
This does not work, since $patch_file is a tmp file, not managed by git. Change-Id: I027c34efcd29d1a9b01979d08d060874961715b1
2018-01-24tcwg-upstream2gerrit.sh: Use reference repo for git cloningMaxim Kuvyrkov
Change-Id: I64d12c484ebb262bf3c6a031a4b9b89d4b9ad85a
2018-01-22tcwg-upstream2gerrit.sh: Proof-of-concept script to test upstream patchesMaxim Kuvyrkov
Change-Id: I158f1927126c8e9bac22a7ec5956bfa956989cd4