@@ -111,16 +111,6 @@ Parameters:
111
111
- ERROR
112
112
- CRITICAL
113
113
114
- PerformTests :
115
- Description : >-
116
- Should ADF perform tox tests during bootstrap?
117
- Valid options are: true, false
118
- Type : String
119
- Default : " false"
120
- AllowedValues :
121
- - " true"
122
- - " false"
123
-
124
114
AllowBootstrappingOfManagementAccount :
125
115
Description : >-
126
116
Would ADF need to bootstrap the Management Account of your AWS
@@ -1659,8 +1649,6 @@ Resources:
1659
1649
Value : !Ref DeploymentAccountMainRegion
1660
1650
- Name : ACCOUNT_BOOTSTRAPPING_STATE_MACHINE_ARN
1661
1651
Value : !Ref AccountBootstrappingStateMachine
1662
- - Name : ADF_PERFORM_TESTS
1663
- Value : !Ref PerformTests
1664
1652
Type : LINUX_CONTAINER
1665
1653
Name : " adf-bootstrap-pipeline-build"
1666
1654
ServiceRole : !GetAtt BootstrapCodeBuildRole.Arn
@@ -1673,6 +1661,8 @@ Resources:
1673
1661
python: 3.12
1674
1662
pre_build:
1675
1663
commands:
1664
+ - pip install yq --root-user-action ignore --quiet
1665
+ - ADF_PERFORM_TESTS=`cat adfconfig.yml | yq -r '.config."run-tests" // "disabled"'`
1676
1666
- >-
1677
1667
pip install
1678
1668
-r adf-build/requirements.txt
@@ -1681,7 +1671,8 @@ Resources:
1681
1671
--root-user-action ignore
1682
1672
--quiet
1683
1673
- |
1684
- if [ "$ADF_PERFORM_TESTS" = "true" ] ; then
1674
+ if [ "$ADF_PERFORM_TESTS" = "enabled" ] ; then
1675
+ echo "Performing tests"
1685
1676
pip install \
1686
1677
-r requirements-dev.txt \
1687
1678
-r adf-build/requirements-dev.txt \
0 commit comments