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

Autorun fixes #101

Merged
merged 7 commits into from
Jan 21, 2025
1 change: 0 additions & 1 deletion scripts/rq_cxl_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,3 @@ dumpfile /root/ndctl/build/meson-logs/testlog.txt
echo "======= meson-test.log ========" > /dev/kmsg
dumpfile "$logfile"
echo "======= Done $0 ========" > /dev/kmsg
systemctl poweroff
Copy link
Member

Choose a reason for hiding this comment

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

I think this was needed to actually shutdown the guest fully and exit the qemu process (when I last ran/tested this) - without it, even after a successful completion of all the tests, we'd end up waiting for the timeout to kill it and exit. Does that not happen anymore?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It does not happen because there is (more recently?) a trap EXIT, check the commit message.

Copy link
Member

Choose a reason for hiding this comment

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

Ah I see - makes sense, the rest of it looks good.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

(more recently?)

Impossible to tell from the git log because both poweroff commands came in the same, very first commit.

Anyway I tested this multiple times and a single poweroff command is enough.

I found that because sometimes you want to LOCALLY comment it out for temporary testing and doing this twice was not convenient :-)