nushell/crates
Sam Hedin f3f40df4dd
Tests for autoenv (and fixes for bugs the tests found) (#2148)
* add test basic_autoenv_vars_are_added

* Tests

* Entry and exit scripts

* Recursive set and overwrite

* Make sure that overwritten vals are restored

* Move tests to autoenv

* Move tests out of cli crate

* Tests help, apparently. Windows has issues

On windows, .nu-env is not applied immediately after running autoenv trust.
You have to cd out of the directory for it to work.

* Sort paths non-lexicographically

* Sibling dir test

* Revert "Sort paths non-lexicographically"

This reverts commit 72e4b856af.

* Rename test

* Change conditions

* Revert "Revert "Sort paths non-lexicographically""

This reverts commit 71606bc62f.

* Set vars as they are discovered

This means that if a parent directory is untrusted,
the variables in its child directories are still set properly.

* format

* Fix cleanup issues too

* Run commands in their separate functions

* Make everything into one large function like all the cool kids

* Refactoring

* fmt

* Debugging windows path issue

* Canonicalize

* Trim whitespace

* On windows, use echo nul instead of touch to create file in test

* Avoid cloning by using drain()
2020-07-12 16:14:09 +12:00
..
nu_plugin_binaryview Bump to 0.16.1 (#2116) 2020-07-06 08:12:44 +12:00
nu_plugin_fetch Refactor Fetch command (No logic changes) (#2131) 2020-07-09 04:49:27 +12:00
nu_plugin_inc Rename 'bytes' to 'filesize' (#2153) 2020-07-11 14:17:37 +12:00
nu_plugin_match Bump to 0.16.1 (#2116) 2020-07-06 08:12:44 +12:00
nu_plugin_post Rename 'bytes' to 'filesize' (#2153) 2020-07-11 14:17:37 +12:00
nu_plugin_ps Rename 'bytes' to 'filesize' (#2153) 2020-07-11 14:17:37 +12:00
nu_plugin_start Bump to 0.16.1 (#2116) 2020-07-06 08:12:44 +12:00
nu_plugin_sys Rename 'bytes' to 'filesize' (#2153) 2020-07-11 14:17:37 +12:00
nu_plugin_textview Bump to 0.16.1 (#2116) 2020-07-06 08:12:44 +12:00
nu_plugin_tree Bump to 0.16.1 (#2116) 2020-07-06 08:12:44 +12:00
nu-build Bump to 0.16.1 (#2116) 2020-07-06 08:12:44 +12:00
nu-cli Tests for autoenv (and fixes for bugs the tests found) (#2148) 2020-07-12 16:14:09 +12:00
nu-errors Bump to 0.16.1 (#2116) 2020-07-06 08:12:44 +12:00
nu-parser 1747 add ns to duration (#2128) 2020-07-11 05:48:11 +12:00
nu-plugin Bump to 0.16.1 (#2116) 2020-07-06 08:12:44 +12:00
nu-protocol added more verbose message to assert (#2157) 2020-07-11 16:49:44 -05:00
nu-source Bump to 0.16.1 (#2116) 2020-07-06 08:12:44 +12:00
nu-table Bump to 0.16.1 (#2116) 2020-07-06 08:12:44 +12:00
nu-test-support Bump to 0.16.1 (#2116) 2020-07-06 08:12:44 +12:00
nu-value-ext Rename 'bytes' to 'filesize' (#2153) 2020-07-11 14:17:37 +12:00