Skip to content

tests: ui-smoke stops when the sim config is not where it expects - #4888

Open
grandixximo wants to merge 1 commit into
LinuxCNC:masterfrom
grandixximo:ui-smoke-src-dir
Open

grandixximo wants to merge 1 commit into
LinuxCNC:masterfrom
grandixximo:ui-smoke-src-dir

Conversation

@grandixximo

@grandixximo grandixximo commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

In gmoccapy-prepare.sh and qtdragon-prepare.sh, if the cd in SRC_DIR="$(cd ... && pwd)" fails, SRC_DIR is empty and the next cp -r "$SRC_DIR/." copies / into /tmp. Both now use realpath -e and exit when the config is missing.

Comment thread tests/ui-smoke/_lib/gmoccapy-prepare.sh Resolved
If the cd in SRC_DIR="$(cd ... && pwd)" fails, SRC_DIR is empty and
cp -r "$SRC_DIR/." copies / into /tmp. Use realpath -e and exit when
the config is missing (suggested by Bertho).
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