Latest settings
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
function cleanurls { for result in $(find . -name "result-*"); do; (cd $result; python3 ../chatgpt-fix-root-URLs.py); done; }
|
||||
function htmls { find -s result-$1 -name "*.html" | sed "s|^result-$1/||"; }
|
||||
function htmls { find -s result-$1/blog -name "*.html" | sed "s|^result-$1/|http://localhost:8081/|" | awk 'BEGIN { print "export const pages = [" } { printf(" \"%s\",\n", $0); } END { print "]" }'; }
|
||||
function commonhtmls { comm -12 <(htmls $1) <(htmls $2); }
|
||||
function compare {
|
||||
commonhtmls $1 $2 > e2e/pages.ts;
|
||||
# (cd result-$1 && python -m http.server 8081 & SERVER_PID=$! && trap "kill $SERVER_PID" EXIT && sleep 1 && cd .. && npx playwright test);
|
||||
(cd result-$2 && python -m http.server 8081 & SERVER_PID=$! && trap "kill $SERVER_PID" EXIT && sleep 1 && cd .. && npx playwright test);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user