Skip to content

Commit

Permalink
do our best to propagate containers from ChallengeGroups to individua…
Browse files Browse the repository at this point in the history
…l instances
  • Loading branch information
zardus committed Dec 2, 2024
1 parent 50936b2 commit a589d21
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pwnshop/challenge.py
Original file line number Diff line number Diff line change
Expand Up @@ -713,8 +713,21 @@ def render(self):
return { c: c.render() for c in self.challenge_instances }

def build(self):
self.ensure_containers()
return { c: c.build() for c in self.challenge_instances }

def verify(self, **kwargs):
self.ensure_containers()

def ensure_containers(self):
super().ensure_containers()
for c in self.challenge_instances:
c.BUILD_IMAGE = self.BUILD_IMAGE
c._build_container = self._build_container
c.VERIFY_IMAGE = self.VERIFY_IMAGE
c._verify_container = self._verify_container


def run_challenge(self, **kwargs): #pylint:disable=arguments-differ
pass

Expand Down

0 comments on commit a589d21

Please sign in to comment.