Test support fixes (#4517)

* Fix failing pipeline()

The `skip(1)` was there likely to remove the welcome message.

* Fix typo

* Fix nu! test macro to enter cwd correctly

Nushell's current working directory is determined primarily by the PWD
environment variable.
This commit is contained in:
Jakub Žádník
2022-02-18 00:23:04 +02:00
committed by GitHub
parent d4cd3f9578
commit c7c427723b
3 changed files with 9 additions and 7 deletions

View File

@ -9,7 +9,7 @@ use nu_protocol::{
};
use std::{io::Write, path::PathBuf};
// This fill collect environment variables from std::env and adds them to a stack.
// This will collect environment variables from std::env and adds them to a stack.
//
// In order to ensure the values have spans, it first creates a dummy file, writes the collected
// env vars into it (in a "NAME"="value" format, quite similar to the output of the Unix 'env'