Include bash version
This commit is contained in:
parent
8186705059
commit
32bc9abb0c
2 changed files with 6 additions and 3 deletions
|
@ -29,8 +29,10 @@ def test_semantic_version(expected_version):
|
||||||
@pytest.mark.parametrize('cmd', ['--version', 'version'])
|
@pytest.mark.parametrize('cmd', ['--version', 'version'])
|
||||||
def test_reported_version(
|
def test_reported_version(
|
||||||
runner, yadm_cmd, cmd, expected_version):
|
runner, yadm_cmd, cmd, expected_version):
|
||||||
"""Report correct version, include git version"""
|
"""Report correct version and bash/git versions"""
|
||||||
run = runner(command=yadm_cmd(cmd))
|
run = runner(command=yadm_cmd(cmd))
|
||||||
assert run.success
|
assert run.success
|
||||||
assert run.err == ''
|
assert run.err == ''
|
||||||
assert run.out.startswith(f'yadm version {expected_version}\ngit version')
|
assert 'bash version' in run.out
|
||||||
|
assert 'git version' in run.out
|
||||||
|
assert run.out.endswith(f'\nyadm version {expected_version}\n')
|
||||||
|
|
3
yadm
3
yadm
|
@ -1413,8 +1413,9 @@ function upgrade() {
|
||||||
|
|
||||||
function version() {
|
function version() {
|
||||||
|
|
||||||
|
echo "bash version $BASH_VERSION"
|
||||||
|
printf " "; "$GIT_PROGRAM" --version
|
||||||
echo "yadm version $VERSION"
|
echo "yadm version $VERSION"
|
||||||
"$GIT_PROGRAM" --version
|
|
||||||
exit_with_hook 0
|
exit_with_hook 0
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue