Commit f2ecdc2 1 parent 6cc8526 commit f2ecdc2 Copy full SHA for f2ecdc2
File tree 6 files changed +26
-2
lines changed
6 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -313,6 +313,7 @@ sub createjob {
313
313
}
314
314
315
315
push @args , ' --clean' unless $opts -> {' noclean' };
316
+ push @args , ' --checks' if $opts -> {' checks' };
316
317
push @args , ' --nochecks' if $opts -> {' nochecks' };
317
318
push @args , ' --shell' if $opts -> {' shell' };
318
319
push @args , ' --shell-after-fail' if $opts -> {' shell-after-fail' };
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ my $pbuild_options = {
33
33
' reponame' => ' :' ,
34
34
' noclean' => ' ' ,
35
35
' no-clean' => ' noclean' ,
36
+ ' checks' => ' ' ,
36
37
' nochecks' => ' ' ,
37
38
' no-checks' => ' nochecks' ,
38
39
' arch' => ' :' ,
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ BUILD_OPTIONS_PARSED=
72
72
DO_INIT=true
73
73
DO_INIT_TOPDIR=true
74
74
DO_LINT=
75
- DO_CHECKS=true
75
+ DO_CHECKS=
76
76
CLEAN_BUILD=
77
77
GENBUILDREQS_CLEAN_BUILD=
78
78
RECIPEFILES=()
@@ -1065,6 +1065,9 @@ while test -n "$1"; do
1065
1065
test " $DO_INIT " = false && DO_INIT_TOPDIR=false
1066
1066
DO_INIT=false
1067
1067
;;
1068
+ -checks)
1069
+ DO_CHECKS=true # default, but to overwrite possible config setting
1070
+ ;;
1068
1071
-nochecks|-no-checks)
1069
1072
DO_CHECKS=false
1070
1073
;;
@@ -1377,7 +1380,6 @@ test "$CONFIG_DIR" != "$BUILD_DIR/configs" && validate_param "--configdir" "$CON
1377
1380
# validate the buildroot
1378
1381
validate_buildroot " $BUILD_ROOT "
1379
1382
1380
-
1381
1383
if test -n " $VM_TYPE " -a -z " $RUNNING_IN_VM " ; then
1382
1384
vm_verify_options
1383
1385
vm_set_defaults
@@ -1416,6 +1418,8 @@ if test -n "$SEND_SYSRQ" ; then
1416
1418
cleanup_and_exit
1417
1419
fi
1418
1420
1421
+ recipe_checks_config
1422
+
1419
1423
# done option parsing
1420
1424
BUILD_OPTIONS_PARSED=true
1421
1425
Original file line number Diff line number Diff line change @@ -312,6 +312,16 @@ recipe_build_time_statistics() {
312
312
fi
313
313
}
314
314
315
+ recipe_checks_config() {
316
+ if test -z "$DO_CHECKS"; then
317
+ local nochecks=$(queryconfig \
318
+ --dist "$BUILD_DIST" --configdir "$CONFIG_DIR" \
319
+ --archpath "$BUILD_ARCH" buildflags nochecks
320
+ )
321
+ test -n "$nochecks" && DO_CHECKS=false || DO_CHECKS=true
322
+ fi
323
+ }
324
+
315
325
recipe_gendiff() {
316
326
local obsgendiff=$(queryconfig \
317
327
--dist "$BUILD_DIST" --configdir "$CONFIG_DIR" \
Original file line number Diff line number Diff line change @@ -61,6 +61,12 @@ A shell script used to generate a Collax binary package.
61
61
.B --clean
62
62
Remove the build system and reinitialize it from scratch.
63
63
.TP
64
+ .B --checks
65
+ Run checks during build (default).
66
+ .TP
67
+ .B --no-checks
68
+ Don't run checks during.
69
+ .TP
64
70
.B --no-init
65
71
Skip the build system initialization and start with build immediately.
66
72
.TP
Original file line number Diff line number Diff line change @@ -111,6 +111,8 @@ the package.
111
111
.TP
112
112
.B "\-\-xen, \-\- kvm, ..."
113
113
.TP
114
+ .B "\-\- checks"
115
+ .TP
114
116
.B "\-\- no-checks"
115
117
.TP
116
118
.B "\-\- no-clean"
You can’t perform that action at this time.
0 commit comments