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

Failed to run tests with libraries after login to test machine #803

Open
brakogh opened this issue Jun 10, 2021 · 3 comments · May be fixed by #3357
Open

Failed to run tests with libraries after login to test machine #803

brakogh opened this issue Jun 10, 2021 · 3 comments · May be fixed by #3357
Assignees
Labels
command | login The login command used to access the guest
Milestone

Comments

@brakogh
Copy link

brakogh commented Jun 10, 2021

Hi,

I'm using following command to run test and login to test machine:
tmt run --all -vvv provision --how minute --image rhel8 test --name . login

Test run ok. After login, I'm in following directory:
/var/tmp/tmt/run-018/plans/all/tree/

Naturally, I'm trying to run test from "tree" directory, in my case /var/tmp/tmt/run-018/plans/all/tree/integration/php-mariadb, by running runtest.sh. This is failing because test can't find requested libraries. After dicussion with @lukaszachy we found out that I have to be using /var/tmp/tmt/run-018/plans/all/discover/default/tests/integration/php-mariadb instead of tree/integration/php-mariadb directory. Running ./runtest.sh from discover directory works as expected.
So can you do cd /var/tmp/tmt/run-018/plans/all/discover/default/tests/ to be in correct directory right after login?

@lukaszachy
Copy link
Collaborator

I think we miss option to login immediately after failed test and cd into tests' workdir automatically.

@lukaszachy lukaszachy added the command | login The login command used to access the guest label Jun 11, 2021
@Athwale
Copy link

Athwale commented Jul 19, 2024

We are still hitting this problem in 2024.

@thrix thrix added this to the 1.36 milestone Jul 22, 2024
@martinhoyer martinhoyer modified the milestones: 1.36, 1.37 Sep 4, 2024
@happz
Copy link
Collaborator

happz commented Sep 24, 2024

It seems this might be related to tmt try also not entering test path after logging in. Possible ideas: with a single test, jumping to its directory; with multiple discover phases, jumping to the last one's workdir? @falconizmi volunteered to take a look.

@thrix thrix modified the milestones: 1.37, 1.38 Oct 1, 2024
@thrix thrix modified the milestones: 1.38, 1.39 Oct 25, 2024
@thrix thrix modified the milestones: 1.39, 1.40 Nov 5, 2024
@falconizmi falconizmi linked a pull request Nov 12, 2024 that will close this issue
1 task
@psss psss linked a pull request Nov 21, 2024 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
command | login The login command used to access the guest
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants