1
0
mirror of synced 2026-08-06 15:36:54 +00:00

devops: roll_driver script (#1605)

This commit is contained in:
Yury Semikhatsky
2024-06-25 08:34:20 -07:00
committed by GitHub
parent 626050d988
commit a08ab2dcae
14 changed files with 104 additions and 91 deletions
+3 -3
View File
@@ -15,14 +15,14 @@ mvn exec:java -e -Dexec.mainClass=com.microsoft.playwright.CLI -Dexec.args="--ve
echo "Running TestApp..."
mvn compile exec:java -e -Dexec.mainClass=com.microsoft.playwright.testcliversion.TestApp 2>&1 | tee ${TMP_DIR}/app.txt
CLI_VERSION=$(cat ${TMP_DIR}/cli.txt | tail -n 1 | cut -d\ -f2)
DRIVER_VERSION=$(cat ${TMP_DIR}/cli.txt | tail -n 1 | cut -d\ -f2)
PACKAGE_VERSION=$(cat ${TMP_DIR}/app.txt | grep ImplementationVersion | cut -d\ -f2)
rm -rf $TMP_DIR
echo "Comparing versions: ${CLI_VERSION} and ${PACKAGE_VERSION}"
echo "Comparing versions: ${DRIVER_VERSION} and ${PACKAGE_VERSION}"
if [[ "$CLI_VERSION" == "$PACKAGE_VERSION" ]];
if [[ "$DRIVER_VERSION" == "$PACKAGE_VERSION" ]];
then
echo "SUCCESS.";
else