We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5134e59 commit 632ce3bCopy full SHA for 632ce3b
1 file changed
unittest.sh
@@ -20,11 +20,14 @@ TEST_CASES_DIR="$SCRIPT_DIR/zephyr/tests"
20
# Set the output directory for test results
21
OUTPUT_DIR="$SCRIPT_DIR/twister-out.unit_testing"
22
23
+# Set platform to unit testing to avoid building for ALL platforms
24
+TWISTER_PLATFORM="unit_testing"
25
+
26
# Remove the output directory
27
rm -rf "$OUTPUT_DIR"
28
29
# Run twister with the specified test cases and output directory
-"$TWISTER_EXE" -O "$OUTPUT_DIR" -T "$TEST_CASES_DIR"
30
+"$TWISTER_EXE" -O "$OUTPUT_DIR" -p "$TWISTER_PLATFORM" -T "$TEST_CASES_DIR"
31
32
# twister output directory cleanup files we do not archive
33
find "$OUTPUT_DIR" -name 'CMakeFiles' -exec rm -rf {} \; 2>/dev/null
0 commit comments