<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Apr 29, 2015 at 11:31 AM, Teresa Johnson <span dir="ltr"><<a href="mailto:tejohnson@google.com" target="_blank">tejohnson@google.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Some have the "REQUIRES: shell" (e.g.<br>
tools/clang/test/VFS/include-virtual-from-real.c) and some don't (e.g.<br>
./tools/clang/test/Analysis/html-diags.c). I looked around for<br>
documentation on when "REQUIRES: shell" is needed but couldn't find<br>
anything specific. The latter test (html-diags.c), which doesn't have<br>
the REQUIRES also does mkdir -p, cd, rm -rf", which are the same<br>
shell-like operations my tests are doing. The former<br>
(include-virtual-from-real.c) is doing some additional shell-like<br>
operations such as sed and echo, which I am not doing. Is there a list<br>
of operations safe to do without adding the "REQUIRES: shell"?</blockquote><div><br></div><div>There isn't current documentation on that, it's basically implementation defined by the lit shell emulator. I recently added support for 'cd', so your example will probably work. Usually people commit first and add the requirement if the test fails, and that's acceptable.</div></div></div></div>