<commit_before>#!/bin/bash

export RAPIDWRIGHT_PATH="$GITHUB_WORKSPACE/env/RapidWright"

# Create the device resource for the test part.
pushd "$GITHUB_WORKSPACE/env"
"$RAPIDWRIGHT_PATH/scripts/invoke_rapidwright.sh" \
    com.xilinx.rapidwright.interchange.DeviceResourcesExample \
    xc7a50tfgg484-1
popd

export CAPNP_PATH="$GITHUB_WORKSPACE/env/capnproto-java/compiler/src/main/schema/"
export INTERCHANGE_SCHEMA_PATH="$GITHUB_WORKSPACE/env/RapidWright/interchange"
export DEVICE_RESOURCE_PATH="$GITHUB_WORKSPACE/env"

make test-py
test $(git status --porcelain | wc -l) -eq 0 || { git diff; false; }<commit_msg>Fix error path on test.sh.<commit_after>#!/bin/bash

export RAPIDWRIGHT_PATH="$GITHUB_WORKSPACE/env/RapidWright"

# Create the device resource for the test part.
pushd "$GITHUB_WORKSPACE/env"
"$RAPIDWRIGHT_PATH/scripts/invoke_rapidwright.sh" \
    com.xilinx.rapidwright.interchange.DeviceResourcesExample \
    xc7a50tfgg484-1
popd

export CAPNP_PATH="$GITHUB_WORKSPACE/env/capnproto-java/compiler/src/main/schema/"
export INTERCHANGE_SCHEMA_PATH="$GITHUB_WORKSPACE/env/RapidWright/interchange"
export DEVICE_RESOURCE_PATH="$GITHUB_WORKSPACE/env"

make test-py
RESULT=$?
if [ $RESULT -ne 0 ]; then
    exit $RESULT
fi
test $(git status --porcelain | wc -l) -eq 0 || { git diff; false; }
{'fraction_non_alphanumeric': 0.11733128834355828, 'fraction_numerical': 0.01303680981595092, 'mean_word_length': 5.624365482233503, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4407068', 'n_tokens_mistral': 507, 'n_tokens_neox': 495, 'n_words': 85}