Skip to content
Snippets Groups Projects
Commit 2947247a authored by Simona Vetter's avatar Simona Vetter
Browse files

dim: allow forced nightly rebuilds

Useful to slurp in fixup patches.

v2: Do a bit a better check for dirty rerere-branch.

v3: Use -f/--force switch instead. No real getopts parsing though, so
better place it at the right spot!

v4: Unlazy and use the existing getopt stuff.
parent 5f452352
No related branches found
No related tags found
No related merge requests found
......@@ -87,13 +87,17 @@ addr_intel_qa="Terence Yang <guang.a.yang@intel.com>"
DRY_RUN=
DRY=
FORCE=
while getopts d opt; do
while getopts df opt; do
case "$opt" in
d)
DRY_RUN=--dry-run
DRY=echo
;;
f)
FORCE=1
;;
*)
exit
esac
......@@ -171,9 +175,13 @@ function update_nightly
local rerere=$DIM_PREFIX/drm-intel-rerere
cd $rerere
if git status --porcelain | grep nightly.conf$ > /dev/null ; then
echo ERROR: -nightly configuration file not commited, aborting
exit 1
if [[ `git status --porcelain | grep -v "^[ ?][ ?]" | wc -l` -gt 0 ]]; then
if [[ $FORCE ]] ; then
echo WARNING: -nightly configuration file not commited, but continuing with rebuild
else
echo ERROR: -nightly configuration file not commited, aborting
exit 1
fi
fi
source $rerere/nightly.conf
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment