This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################ | |
# Unset environment variables # | |
################################ | |
unset $CENTOS_NODE | |
unset $SSID | |
######################### | |
# Get system from Duffy # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import signal | |
import tempfile | |
from avocado import main | |
from avocado import Test | |
from avocado.utils import vmimage | |
from avocado.utils import git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmd = ('resize2fs /dev/sda1; ' | |
'{pkg_mgm} install -y python libselinux-python git; ' | |
'{pkg_mgm} update -y nettle; ').format(pkg_mgm=self.pkg_mgm) | |
if self.debug: | |
cmd += ('mkdir -p {dir}; ' | |
'chown avocado:avocado {dir}').format(dir=self.iso_dest) | |
ansible_cmd = ('ansible localhost -i "localhost," --become ' | |
'-m raw -a "{cmd}" --user {user} ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
repo: https://github.com/firemanxbr/contra-env-setup.git | |
branch: new_release_v2 | |
deploy_minishift: True | |
distros: !mux | |
fedora: | |
distro: Fedora | |
centos: | |
distro: CentOS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from avocado import main | |
from avocado.utils import vmimage | |
from avocado.utils import git | |
from avocado.utils import process | |
from avocado.utils import path as utils_path | |
from avocado_qemu import QemuTest | |
from avocado_qemu import GetConsole |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> from avocado.utils.memory import meminfo | |
>>> meminfo.MemTotal.b | |
16227139584 | |
>>> meminfo.MemTotal.m | |
15475 | |
>>> meminfo.MemTotal.g | |
15 | |
>>> meminfo.Active.b | |
6399352832 | |
>>> meminfo.Active.k |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QEMU_PROG: "../../x86_64-softmmu/qemu-system-x86_64" | |
QEMU_IMG_PROG: "../../qemu-img" | |
QEMU_IO_PROG: "../../qemu-io" | |
QEMU_NBD_PROG: "../../qemu-nbd" | |
TEST_DIR: "scratch" | |
OUTPUT_DIR: "." | |
SOCKET_SCM_HELPER: "socket_scm_helper" | |
SAMPLE_IMG_DIR: "sample_images" | |
QEMU_OPTIONS: "-nodefaults -machine accel=qtest" | |
QEMU_DEFAULT_MACHINE: pc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[simpletests.status] | |
skip_regex = not run: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from avocado import Test | |
from avocado import skipIf | |
_SKIP_CONTROL = '/tmp/skip.control' | |
def _should_i_skip(): | |
try: | |
with open(_SKIP_CONTROL, 'r') as file_obj: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import storage | |
import vm | |
class Job(object): | |
""" | |
Class to represent a Backup Job, | |
with its methods | |
""" |
NewerOlder