Skip to content

support for logical AND in status check via 'mode'#1429

Merged
shahzebsiddiqui merged 8 commits intodevelfrom
status_check_mode
Mar 23, 2023
Merged

support for logical AND in status check via 'mode'#1429
shahzebsiddiqui merged 8 commits intodevelfrom
status_check_mode

Conversation

@shahzebsiddiqui
Copy link
Member

No description provided.

…o specify status check to be done as a 'or' 'and' which

will be a logical OR/AND.
add an example buildspec to demonstrate the example
…ks. We assign all status check into a dictionary as a lookup table.

Refactored the codebase for status check logic and added support for logical AND when using 'mode: and'
@shahzebsiddiqui shahzebsiddiqui linked an issue Mar 22, 2023 that may be closed by this pull request
# check regex against output or error stream based on regular expression
# defined in status property. Return value is a boolean
regex_match = regex_check(self)
# returncode_match is boolean to check if reference returncode matches return code from test
Copy link
Collaborator

@prathmesh4321 prathmesh4321 Mar 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shahzebsiddiqui You can remove this comment since we are not using the variable "returncode_match".

Copy link
Collaborator

@prathmesh4321 prathmesh4321 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shahzebsiddiqui Please take a look at the above comment. Other than this the PR looks good to me !

@shahzebsiddiqui shahzebsiddiqui merged commit a36c67d into devel Mar 23, 2023
@shahzebsiddiqui shahzebsiddiqui deleted the status_check_mode branch March 23, 2023 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

status check support with logical AND

3 participants