mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2026-05-01 23:16:31 +02:00
cucumber for days (#5766)
This commit is contained in:
@@ -108,6 +108,7 @@ capture_file_list() {
|
||||
-not -path '*/tmp/stirling-pdf/jetty-*/*' \
|
||||
-not -path '*/tmp/stirling-pdf/lu*' \
|
||||
-not -path '*/tmp/stirling-pdf/tmp*' \
|
||||
-not -path '*/tmp/stirling-pdf/stirling-pdf-*.pdf' \
|
||||
2>/dev/null | xargs -I{} sh -c 'stat -c \"%n %s %Y\" \"{}\" 2>/dev/null || true' | sort" > "$output_file"
|
||||
|
||||
# Check if the output file has content
|
||||
@@ -131,6 +132,7 @@ capture_file_list() {
|
||||
-not -path '*/tmp/stirling-pdf/jetty-*/*' \
|
||||
-not -path '*/tmp/lu*' \
|
||||
-not -path '*/tmp/tmp*' \
|
||||
-not -path '*/tmp/stirling-pdf/stirling-pdf-*.pdf' \
|
||||
2>/dev/null | sort" > "$output_file"
|
||||
|
||||
if [ ! -s "$output_file" ]; then
|
||||
@@ -539,8 +541,14 @@ main() {
|
||||
|
||||
capture_file_list "$CONTAINER_NAME" "$BEFORE_FILE"
|
||||
|
||||
CUCUMBER_REPORT="$PROJECT_ROOT/testing/cucumber/report.html"
|
||||
CUCUMBER_JUNIT_DIR="$PROJECT_ROOT/testing/cucumber/junit"
|
||||
mkdir -p "$CUCUMBER_JUNIT_DIR"
|
||||
cd "testing/cucumber"
|
||||
if python -m behave; then
|
||||
if python -m behave \
|
||||
-f behave_html_formatter:HTMLFormatter -o "$CUCUMBER_REPORT" \
|
||||
-f pretty \
|
||||
--junit --junit-directory "$CUCUMBER_JUNIT_DIR"; then
|
||||
echo "Waiting 5 seconds for any file operations to complete..."
|
||||
sleep 5
|
||||
|
||||
|
||||
Reference in New Issue
Block a user