]> git.proxmox.com Git - mirror_qemu.git/blob - tests/acceptance/version.py
Merge remote-tracking branch 'remotes/rth/tags/pull-axp-20180618' into staging
[mirror_qemu.git] / tests / acceptance / version.py
1 # Version check example test
2 #
3 # Copyright (c) 2018 Red Hat, Inc.
4 #
5 # Author:
6 # Cleber Rosa <crosa@redhat.com>
7 #
8 # This work is licensed under the terms of the GNU GPL, version 2 or
9 # later. See the COPYING file in the top-level directory.
10
11
12 from avocado_qemu import Test
13
14
15 class Version(Test):
16 """
17 :avocado: enable
18 :avocado: tags=quick
19 """
20 def test_qmp_human_info_version(self):
21 self.vm.launch()
22 res = self.vm.command('human-monitor-command',
23 command_line='info version')
24 self.assertRegexpMatches(res, r'^(\d+\.\d+\.\d)')