Add skip_dep_builds flag to suppress dependency builds

To allow unit tests suppressing the build of
dependencies when using the prepare() function.
This commit is contained in:
Ralph Lange
2022-07-22 10:29:22 +02:00
parent 22b2e3f796
commit af1ecbabae
2 changed files with 5 additions and 1 deletions

View File

@@ -67,6 +67,8 @@ import cue
# we're working with tags (detached heads) a lot: suppress advice
cue.call_git(['config', '--global', 'advice.detachedHead', 'false'])
# Don't build dependencies when running unit tests
cue.skip_dep_builds = True
class TestSourceSet(unittest.TestCase):