Skip to content

Commit

Permalink
added debug variable + fix attach
Browse files Browse the repository at this point in the history
Signed-off-by: Tullio Sebastiani <[email protected]>
  • Loading branch information
tsebastiani committed Nov 26, 2024
1 parent 9d437c7 commit e4b1cee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/scenario_orchestrator/common_functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func CommonListRunningScenarios(c ScenarioOrchestrator, ctx context.Context) (*[

for _, index := range indexes {
container := (*containersMap)[index]
scenario, err := c.InspectScenario(container, nil)
scenario, err := c.InspectScenario(container, ctx)
if err != nil {
return nil, err
}
Expand Down
4 changes: 4 additions & 0 deletions tests/containerfiles/dummyscenario/run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
[ -z $END ] && echo '$END variable not exported' && exit 1
[ -z $EXIT_STATUS ] && echo '$EXIT_STATUS variable not exported' && exit 1
if [[ $DEBUG == 'True' ]]; then
echo "DEBUG MODE ON!"
fi

for i in $(seq 0 $END); do
echo "Release the krkn $i"
sleep 1
Expand Down

0 comments on commit e4b1cee

Please sign in to comment.