tests: small correction to git args
According to git-rev-parse(1) "-q" only does something in combination with "--verify". Skip it, we do not need "--verify" because HEAD is exactly one arg. Signed-off-by: Henning Schild <henning.schild@siemens.com> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
parent
348894158d
commit
c3e1594b0e
@ -49,7 +49,7 @@ def test_refspec_switch(changedir, tmpdir):
|
||||
fail=False, liveupdate=False)
|
||||
assert rc != 0
|
||||
assert output.strip() == ''
|
||||
(rc, output) = run_cmd(['git', 'rev-parse', '-q', 'HEAD'], cwd='kas',
|
||||
(rc, output) = run_cmd(['git', 'rev-parse', 'HEAD'], cwd='kas',
|
||||
fail=False, liveupdate=False)
|
||||
assert rc == 0
|
||||
assert output.strip() == '907816a5c4094b59a36aec12226e71c461c05b77'
|
||||
@ -67,7 +67,7 @@ def test_refspec_switch(changedir, tmpdir):
|
||||
fail=False, liveupdate=False)
|
||||
assert rc != 0
|
||||
assert output.strip() == ''
|
||||
(rc, output) = run_cmd(['git', 'rev-parse', '-q', 'HEAD'], cwd='kas2',
|
||||
(rc, output) = run_cmd(['git', 'rev-parse', 'HEAD'], cwd='kas2',
|
||||
fail=False, liveupdate=False)
|
||||
assert rc == 0
|
||||
assert output.strip() == '907816a5c4094b59a36aec12226e71c461c05b77'
|
||||
|
Loading…
Reference in New Issue
Block a user