Skip to content

Commit

Permalink
Add debug info
Browse files Browse the repository at this point in the history
Signed-off-by: Nandini Chandra <[email protected]>
  • Loading branch information
nachandr committed Dec 12, 2024
1 parent c24c698 commit 588c9af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cypress/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1806,6 +1806,7 @@ export function waitUntilSpinnerIsGone(timeout = 300): void {

export function getCommandOutput(command: string): Cypress.Chainable<Cypress.Exec> {
return cy.exec(command, { timeout: 30 * SEC }).then((result) => {
cy.log('Exec result', result);
return result;
});
}
Expand Down Expand Up @@ -1859,8 +1860,7 @@ export function validateTackleCr(): void {
export function validateMtaOperatorLog(): void {
cy.wait(30 * SEC);
cy.pause();
let command = `oc logs $(oc get pods -n openshift-mta| grep mta-operator | cut -d " " -f 1)
-n openshift-mta | grep failed | tail -n 1| awk -F 'failed=' '{print $2}'|cut -d " " -f 1`;
let command = `oc logs $(oc get pods -n openshift-mta| grep mta-operator | cut -d " " -f 1) -n openshift-mta | grep failed | tail -n 1| awk -F 'failed=' '{print $2}'|cut -d " " -f 1`;
cy.log("COMMAND:", command);
getCommandOutput(command).then((result) => {
cy.log("RESULT:", result);
Expand Down

0 comments on commit 588c9af

Please sign in to comment.