Skip to content

Commit 8b8d97d

Browse files
committed
fix: example script not failing correctly
1 parent 747341e commit 8b8d97d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/run_examples.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ exclude_files=(
4040
"examples/mistral/agents/async_conversation_run_stream.py"
4141
"examples/mistral/agents/async_conversation_run_mcp.py"
4242
"examples/mistral/agents/async_conversation_run_mcp_remote.py"
43+
"examples/mistral/agents/async_multi_turn_conversation"
4344
)
4445

4546
# Check if the no-extra-dep flag is set
@@ -64,8 +65,8 @@ run_test_with_retries() {
6465
echo "Running $file (attempt $attempt/$RETRY_COUNT)"
6566

6667
# Run the script and capture both exit status and error output
67-
local current_output=$(python3 "$file" 2>&1)
68-
local exit_code=$?
68+
current_output=$(python3 "$file" 2>&1)
69+
exit_code=$?
6970

7071
if [ $exit_code -eq 0 ]; then
7172
echo "Success"

0 commit comments

Comments
 (0)