diff options
author | nicoo <nicoo@debian.org> | 2020-12-20 23:35:57 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2020-12-21 09:36:10 +0100 |
commit | a2a3085738c10ba12aedea2197a42f5f9a2bfca9 (patch) | |
tree | 2a2c826500eaf489a4ec664bfc58a1ba57ce2bde /tests | |
parent | cc5e85bd6c00c1cc3588f56884bf59ab3587fc17 (diff) |
tests/11_test_dch_main.py: Don't expect /etc/lsb-release on Debian
Diffstat (limited to 'tests')
-rw-r--r-- | tests/11_test_dch_main.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/11_test_dch_main.py b/tests/11_test_dch_main.py index 14cf5939..dbd82879 100644 --- a/tests/11_test_dch_main.py +++ b/tests/11_test_dch_main.py @@ -15,11 +15,11 @@ import re default_urgency = get_dch_default_urgency() # For Ubuntu compatibility -os_release = OsReleaseFile('/etc/lsb-release') +os_release = OsReleaseFile() # OS release codename and snapshot of version 0.9-2~1 -if os_release['DISTRIB_ID'] == 'Ubuntu': - os_codename = os_release['DISTRIB_CODENAME'] +if os_release['ID'] == 'Ubuntu': + os_codename = os_release['UBUNTU_CODENAME'] snap_header_0_9 = r'^test-package\s\(0.9-1ubuntu1~1\.gbp([0-9a-f]{6})\)\sUNRELEASED;\surgency=%s' % default_urgency new_version_0_9 = '0.9-1ubuntu1' else: |