Source: cargo Version: 0.29.0-1 debian/rules sets DEB_BUILD_PROFILES. The variable is not meant to be changed during build. Changing it can lead to inconsistency between tools run by debian/rules and tools run outside debian/rules, but it also overrides a user configuration. Please use a different variable for skipping tests for certain architectures.
Note that you don't have to check for the nocheck profile. Checking the nocheck option is sufficient, because the spec requires that nocheck is added to DEB_BUILD_OPTIONS whenever it is present in DEB_BUILD_PROFILES. Simply setting DEB_BUILD_PROFILES=nocheck without setting DEB_BUILD_OPTIONS is a build profile specification violation. Helmut