From 95fc571cdc40cb5db0cf56cd70405a7fe9e4f4b7 Mon Sep 17 00:00:00 2001 From: Johan Holmberg <holmberg556@gmail.com> Date: Fri, 27 Mar 2009 21:23:37 +0000 Subject: [PATCH] Added description of "prepend_path". --- doc/cmdtest.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/cmdtest.txt b/doc/cmdtest.txt index 8b0a2ad..f7bfd63 100644 --- a/doc/cmdtest.txt +++ b/doc/cmdtest.txt @@ -371,6 +371,13 @@ Helper functions the current directory inside the "work directory" at the time of the call. +``prepend_path(dir)`` + Prepend the given directory to the ``PATH`` so commands executed via ``cmd`` + are looked up using the modified ``PATH``. A typical use is to add the directory + where the executable tested is located. The argument ``dir`` is evaluated + relative to the current directory in effect when ``cmdtest`` was invoked. + + ``touch_file(filename)`` "touch" a file inside the "work directory". The filename is evaluated relative to the current directory at the