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

Fix reruns of full stack tests on specified temp dir #4524

Closed
wants to merge 1 commit into from

Conversation

okurz
Copy link
Member

@okurz okurz commented Feb 23, 2022

No description provided.

Copy link
Contributor

@perlpunk perlpunk left a comment

Choose a reason for hiding this comment

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

Wait, I think deleting this directory is wrong

sub setup_fullstack_temp_dir {
my ($test_name) = @_;
my $tempdir = $ENV{OPENQA_FULLSTACK_TEMP_DIR} ? path($ENV{OPENQA_FULLSTACK_TEMP_DIR}) : tempdir;
my $tempdir = _test_dir();
my $basedir = $tempdir->child($test_name);
Copy link
Contributor

@perlpunk perlpunk Feb 23, 2022

Choose a reason for hiding this comment

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

This $basedir is the directory which should be deleted.
e.g. full-stack.d is doing:

my $tempdir = setup_fullstack_temp_dir('full-stack.d');

so it would be $OPENQA_FULLSTACK_TEMP_DIR/full-stack.d

Otherwise it could delete a previous dir from another test.

@codecov
Copy link

codecov bot commented Feb 23, 2022

Codecov Report

Merging #4524 (823aa4b) into master (f985ad8) will decrease coverage by 0.00%.
The diff coverage is 60.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4524      +/-   ##
==========================================
- Coverage   97.96%   97.96%   -0.01%     
==========================================
  Files         374      374              
  Lines       34063    34067       +4     
==========================================
+ Hits        33371    33373       +2     
- Misses        692      694       +2     
Impacted Files Coverage Δ
t/lib/OpenQA/Test/Utils.pm 81.89% <60.00%> (-0.38%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f985ad8...823aa4b. Read the comment docs.

@perlpunk
Copy link
Contributor

See #4527

@okurz
Copy link
Member Author

okurz commented Feb 23, 2022

awesome, yours looks good

@okurz okurz closed this Feb 23, 2022
@okurz okurz deleted the fix/full_stack_retries branch February 23, 2022 13:43
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.

None yet

3 participants