Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add HAB_FUNC_TEST end to end overrides for builder-worker #1735

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

pozsgaic
Copy link
Contributor

Signed-off-by: pozsgaic [email protected]

@pozsgaic pozsgaic marked this pull request as ready for review May 31, 2022 10:59

return res;
}

Copy link
Contributor

Choose a reason for hiding this comment

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

I think you can avoid all of this repetitive code by creating a token variable and populating it with either bobo or the bldr_token depending on HAB_FUNC_TEST

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

section.end()?;
return Ok(());
}

Copy link
Contributor

Choose a reason for hiding this comment

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

rather than repeating these 2 lines, you can wrap the match block below in a if env::var_os("HAB_FUNC_TEST").is_none().

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

@pozsgaic pozsgaic force-pushed the cjp_worker_func_test branch from 453b184 to e7ccb2c Compare June 10, 2022 11:51
.map_err(Error::MpscAsync)?;
return Err(err);
if env::var_os("HAB_FUNC_TEST").is_some() {
// Skip post process
Copy link
Contributor

Choose a reason for hiding this comment

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

You want to use is_none() to avoid the else and empty if

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep - missed that

Signed-off-by: pozsgaic <[email protected]>
@stale
Copy link

stale bot commented Jun 18, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you.

@stale stale bot added the Stale label Jun 18, 2023
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.

2 participants