Skip to content

Commit

Permalink
clean left-overs logs in code
Browse files Browse the repository at this point in the history
  • Loading branch information
manolo committed Jan 30, 2025
1 parent 35c28c2 commit fefaac5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion scripts/pit/its/test-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ async function createPage(headless, ignoreHTTPSErrors) {
const page = await context.newPage();
page.on('console', msg => {
const text = `${msg.text()} - ${msg.location().url}`.replace(/\s+/g, ' ');
if (!/vaadinPush/.test(msg)) out("> CONSOLE:", text, '\n');
if (!/vaadinPush/.test(text)) out("> CONSOLE:", text, '\n');
});
page.on('pageerror', e => warn("> JSERROR:", ('' + e).replace(/\s+/g, ' '), '\n'));
page.browser = browser;
Expand Down
3 changes: 2 additions & 1 deletion scripts/pit/lib/lib-ccenter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,12 @@ showTemporaryPassword() {
## Run Playwright tests for the control-center
runPwTests() {
computeNpm
[ -d screenshots.out ] && runCmd "$TEST" "Removing old screenshots" "rm -rf screenshots.out"
[ -n "$SKIPPW" ] && return 0
[ -z "$CC_CERT" -o -z "$CC_KEY" ] && NO_TLS=--notls || NO_TLS=""
for f in $CC_TESTS; do
runPlaywrightTests "$PIT_SCR_FOLDER/its/$f" "" "prod" "control-center" --url=https://$CC_CONTROL --login=$CC_EMAIL $NO_TLS || return 1
[ "$f" = cc-install-apps.js ] && reloadIngress && ls -l && cat *.pem && checkTls
[ "$f" = cc-install-apps.js ] && reloadIngress
sleep 3
done
}
Expand Down
4 changes: 0 additions & 4 deletions scripts/pit/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,6 @@ main() {
if [ $i = control-center ]; then
mkdir -p tmp/$i && cd tmp/$i
run runControlCenter $i
if [ $? != 0 ]; then
kubectl get pods -n $CC_NS
ps -feaww | grep kubectl
fi
cd "$pwd"
continue
elif expr "$i" : '.*_jdk' >/dev/null; then
Expand Down

0 comments on commit fefaac5

Please sign in to comment.