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

update documentation for manifest #210

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/manifest/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,18 @@ and runtime specific settings.
manifest filename with the extension `.py`. E.g. the script filename for a manifest
with filename of ``job.tem`` is ``job.py`` in the same directory as the manifest file.

.. note::
In case the associated script file is in a different location from the manifest you can use a symlink
to refer to the job.py. By default, the job will be executed in the directory where the manifest file is located.
To change the execution directory and use the symlink target directory to execute the script you need
to pass --follow-symlink.

.. code-block:: shell

$ pyats run manifest job.tem --follow-symlink

$ job.py # is a symlink for the associated script
ThomasJRyan marked this conversation as resolved.
Show resolved Hide resolved
ThomasJRyan marked this conversation as resolved.
Show resolved Hide resolved
Copy link
Contributor

Choose a reason for hiding this comment

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

Please show symlink from the filesystem, e.g.

ls -l job.py
lrwxr-xr-x  1 admin  wheel  20 Nov 29 11:36 job.py -> /tmp/job/path/job.py

This job will be executed in the /tmp/job/path directory.

Copy link

Choose a reason for hiding this comment

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

Please show symlink from the filesystem, e.g.

ls -l job.py
lrwxr-xr-x  1 admin  wheel  20 Nov 29 11:36 job.py -> /tmp/job/path/job.py

This job will be executed in the /tmp/job/path directory.

@omehrabi
Did you see this note from a reviewer?


Script types
~~~~~~~~~~~~

Expand Down