summaryrefslogtreecommitdiff
path: root/lib/spack/spack/test/cmd/cd.py
blob: 346b9a61858891c7d0b49f8a60504f1846226b32 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.main import SpackCommand

cd = SpackCommand('cd')


def test_cd():
    """Sanity check the cd command to make sure it works."""

    out = cd()

    assert "To set up shell support" in out