From 90b979a46020991044be8b5e8633e77d8774cc44 Mon Sep 17 00:00:00 2001 From: diosmosis <benakamoorthi@fastmail.fm> Date: Mon, 14 Oct 2013 14:20:42 -0400 Subject: [PATCH] Removing populate-secpected-screenshots.sh script since it's no longer needed. --- .../PHPUnit/populate-expected-screenshots.sh | 40 ------------------- 1 file changed, 40 deletions(-) delete mode 100755 tests/PHPUnit/populate-expected-screenshots.sh diff --git a/tests/PHPUnit/populate-expected-screenshots.sh b/tests/PHPUnit/populate-expected-screenshots.sh deleted file mode 100755 index e8dba96e39..0000000000 --- a/tests/PHPUnit/populate-expected-screenshots.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/bash - -current_branch=$(git rev-parse --abbrev-ref HEAD) - -# checkout branch and missing files/directories/links if needed -if ! git checkout $1; then - echo "failed to checkout branch, aborting" - exit 1 -fi - -test_files="UI/UIIntegrationTest.php -Fixtures/ManySitesImportedLogsWithXssAttempts.php -proxy/libs -proxy/plugins -proxy/tests" - -for file in $test_files -do - if [ ! -e "$file" ]; then - git checkout master "$file" - fi -done - -# run UI tests -echo "Running UI tests..." -phpunit UI &> /dev/null - -# copy processed png -echo "Copying to expected screenshot dir..." -if [ ! -d "UI/expected-ui-screenshots" ]; then - mkdir UI/expected-ui-screenshots -fi - -cp UI/processed-ui-screenshots/* UI/expected-ui-screenshots - -# go back to original branch -rm populate-expected-screenshots.sh -git reset --hard -git checkout $current_branch - -- GitLab