Skip to content

Instantly share code, notes, and snippets.

View apahim's full-sized avatar

Amador Pahim apahim

  • Red Hat, Inc
  • Ireland
View GitHub Profile
#!/usr/bin/env python
class Storage(object):
def __init__(self, storage_name):
self.name = storage_name
#!/usr/bin/env python
class Vm(object):
def __init__(self, vmname):
self.name = vmname
#!/usr/bin/env python
"""
OO Example
"""
import argparse
import job
import logging
#!/bin/bash
if [ -z "${1}" ]
then
echo "Please provide usernam:branch of your fork."
exit 1
else
fork_user=$(echo ${1} | cut -d ":" -f 1)
fork_branch=$(echo ${1} | cut -d ":" -f 2)
fi
#!/bin/bash
if [ -z "${1}" ]
then
echo "Please provide usernam:branch of your fork."
exit 1
else
fork_user=$(echo ${1} | cut -d ":" -f 1)
fork_branch=$(echo ${1} | cut -d ":" -f 2)
fi
~/git/avocado (plugin_golang)$ pylint optional_plugins/golang/avocado_golang/__init__.py
No config file found, using default configuration
************* Module avocado_golang.__init__
C:112, 0: Wrong continued indentation (add 1 space).
{"name": "%s: %s" % (url, msg)})]
^| (bad-continuation)
C:124, 0: Wrong continued indentation (add 1 space).
{'name': test_name,
^| (bad-continuation)
************* Module avocado_golang
$ avocado run my_first_test.py -m params_simple.yaml --combinatorial 2
JOB ID : 337880f4750bb5702fc1b45dd889dbd8edf9a961
JOB LOG : /home/apahim/avocado/job-results/job-2017-09-09T16.02-337880f/job.log
=================
COMBINATION: default-default-00aa
KEY: step, VALUE: 5
KEY: timeout, VALUE: 60
KEY: arch, VALUE: x86_64
COMBINATION: aarch64-default-e497
KEY: step, VALUE: 5
From 731c6331a382da673de9cba48091e19366706ab6 Mon Sep 17 00:00:00 2001
From: Amador Pahim <[email protected]>
Date: Fri, 8 Sep 2017 19:01:29 +0200
Subject: [PATCH] Combinatorial
Signed-off-by: Amador Pahim <[email protected]>
---
avocado/core/combinatorial.py | 51 ++++++++++++++++++++++++++++++++++++++++
avocado/core/job.py | 7 ++++++
avocado/plugins/combinatorial.py | 45 +++++++++++++++++++++++++++++++++++
import avocado
from external_lib import is_env_ok
class MyTest(avocado.Test):
@avocado.skipIf(is_env_ok())
def setUp(self):
pass
def test1(self):