GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Tests should explicitly pass -NoProfile when launching powershell. · Issue #3881 · PowerShell/PowerShell

Tests should explicitly pass -NoProfile when launching powershell. #3881

New issue
Copy link
New issue
Copy link
Closed
Closed
Tests should explicitly pass -NoProfile when launching powershell.#3881
Copy link
Labels
Resolution-FixedThe issue is fixed.The issue is fixed.WG-Quality-Testissues in a test or in test infrastructureissues in a test or in test infrastructure

Description

@dantraMSFT
Dan Travison (dantraMSFT)
opened on May 30, 2017
Issue body actions

Steps to reproduce

Update the profile script to implicitly or explicitly write to the output stream.
Run the test\powershell\Modules\Microsoft.PowerShell.Core\Out-Default.Tests.ps1 tests.

Expected behavior

All tests pass

Actual behavior

All tests fail.

The pattern in the tests assumes running powershell -c 'somescript' will only produce output from the script. The output from the profile is unexpected and causes the tests to fail.

For these types of tests; -Profile should also be specified.

PSVersion                      6.0.0-beta
PSEdition                      Core
BuildVersion                   3.0.0.0
CLRVersion
GitCommitId                    v6.0.0-beta.1-21-g73dd94197b5f4fb7a4d2ece325199bfd5caa64b1-dirty
OS                             Microsoft Windows 10.0.16209
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Activity

  1. Joey Aiello (joeyaiello)
    added
    WG-Quality-Testissues in a test or in test infrastructureissues in a test or in test infrastructure
    on May 30, 2017
  2. TravisEz13 commented on Feb 13, 2018

    @TravisEz13
    Travis Plunk (TravisEz13)
    on Feb 13, 2018
    Member
    More actions

    fixed in #4132

  3. Travis Plunk (TravisEz13)
    closed this as completedon Feb 13, 2018
  4. Ilya (iSazonov)
    added
    Resolution-FixedThe issue is fixed.The issue is fixed.
    on Mar 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution-FixedThe issue is fixed.The issue is fixed.WG-Quality-Testissues in a test or in test infrastructureissues in a test or in test infrastructure

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.