Skip to content

Commit 983500e

Browse files
committedApr 12, 2024·
update expected output from build script
1 parent 6d76fee commit 983500e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed
 

‎scripts/build_package_without_binaries.sh

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
#!/bin/bash
22

3-
# Run the Python script and capture the output and error
3+
# Run the Python script and capture the output or error
44
output=$(python -m build 2>&1)
55

6-
# Define the expected error message
7-
expected_error="Could not load any ArrayFire libraries."
6+
# Define the expected output message
7+
expected_output="Successfully built"
88

9-
# Check if the output contains the expected error message
10-
if echo "$output" | grep -q "$expected_error"; then
11-
echo "Expected error received."
12-
exit 0 # Exit with success as the error is expected
9+
# Check if the output contains the expected output message
10+
if echo "$output" | grep -q "$expected_output"; then
11+
echo "Expected output received."
12+
exit 0 # Exit with success as the output is expected
1313
else
1414
echo "Unexpected output: $output"
1515
exit 1 # Exit with failure as the output was not expected

0 commit comments

Comments
 (0)
Please sign in to comment.