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

allow tests to download specific test data #68

Merged
merged 1 commit into from
Nov 14, 2014
Merged

allow tests to download specific test data #68

merged 1 commit into from
Nov 14, 2014

Conversation

coolo
Copy link
Contributor

@coolo coolo commented Nov 13, 2014

issue 4658


$self->app->log->debug("serving data for job ".$self->{job}->{id});

my $distri = $self->{job}->{settings}->{DISTRI};

return sprintf "%s/os-autoinst/tests/%s/data/", $openqa::basedir, $distri;
Copy link
Contributor

Choose a reason for hiding this comment

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

For remote workers I created /var/lib/openqa/share/tests. Then /var/lib/os-autoinst/tests is symlink to this directory. Can't tests be more of a part of openqa than os-autoinst? (For future reference, until my PRs are ready)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The tests are actually different between distributions and so they are part of nothing, but in the sense of things we need the distributions somewhere, where doesn't really matter. But they used to live in os-autoinst, openQA is "just" the UI.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the benefit of this PR is that the tests don't hardcode the location any longer, but rely on openQA to know where the data is. openQA needs to continue to have all the distributions checked out, so if you change the location for the tests, you only have to change File.pm

@coolo
Copy link
Contributor Author

coolo commented Nov 13, 2014

is anyone reviewing?

@nilxam
Copy link
Member

nilxam commented Nov 14, 2014

LGTM

nilxam added a commit that referenced this pull request Nov 14, 2014
allow tests to download specific test data
@nilxam nilxam merged commit e15abf3 into master Nov 14, 2014
@coolo coolo deleted the coolo_4658 branch November 14, 2014 08:28
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