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

tests: Improve test isolation #298

Merged
merged 3 commits into from
Mar 8, 2018
Merged

tests: Improve test isolation #298

merged 3 commits into from
Mar 8, 2018

Conversation

chrissie-c
Copy link
Contributor

Make all the IPC tests run with a common date/pid stamp name, so that
the final resource.test only fails if it finds one of OUR files left
lying around and not those from another test.

Signed-off-by: Christine Caulfield [email protected]

Make all the IPC tests run with a common date/pid stamp name, so that
the final resource.test only fails if it finds one of OUR files lefti
lying around and not those from another test.

Signed-off-by: Christine Caulfield <[email protected]>
Copy link
Member

@jfriesse jfriesse left a comment

Choose a reason for hiding this comment

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

Patchset looks ok with exception of two small nitpicks (commented inside)


/* The process-unique part of the IPC name has already been decided
* and stored in the file ipc-test-name.
*/
Copy link
Member

Choose a reason for hiding this comment

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

It may be nice to have some fallback when ipc-test-name file does not exists because right now, result is going to be random bytes from memory.

# The test programs all add "qb-test-<name>-" to the front of this.
#
NAME="$$-`date +%N`"
echo -n "$NAME" > ipc-test-name
Copy link
Member

Choose a reason for hiding this comment

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

New line missing

@jfriesse
Copy link
Member

jfriesse commented Mar 8, 2018

Perfect, looks good now (and ci passed :) ), so ACK

@chrissie-c chrissie-c merged commit 67e739e into ClusterLabs:master Mar 8, 2018
@chrissie-c chrissie-c deleted the isolate-tests branch March 8, 2018 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants