lp://staging/~wesley-wiedenmeier/+junk/test-scratch
- Get this branch:
- bzr branch lp://staging/~wesley-wiedenmeier/+junk/test-scratch
Branch information
- Owner:
- Wesley Wiedenmeier
- Status:
- Development
Recent revisions
- 321. By Scott Moser
-
support passing an integer or valid float to human2bytes
We were forcing people to pass 'size' in a config as a string.
human2bytes("100") was fine but human2bytes(100) would raise exception.Seems to make sense for human2bytes to allow int (100) or float (100.0).
floats are allowed if int(size) == size (100.0 is ok, 100.4 is not). - 320. By Ryan Harper
-
Use /proc/mounts to find missing mountpoints
lsblk (notably on trusty) does not find all mountpoints. Augment
block.get_mountpoints( ) lsblk data with mountpoints from proc/mounts.
Refactor reading proc/mounts into common function in block for reuse.Fixes PreciseTestBasic (issues with btrfs on whole disk)
Fixes TrustyTestBasic (issues with dname and ptable) - 319. By Scott Moser
-
tests: invoke nosetests with --nologcapture
When a install or boot fails, the vmtest harness would log.DEBUG
with the console log output. nose was capturing this logging
and replaying it on test failure.This causes very long output to the screen of the user who ran
'make vmtest', making it hard for them to find out what happened.Since we're now reasonably storing the console logs, its quite
sane to not spit those to stderr so that the output is easier to read. - 318. By Scott Moser
-
vmtests: validate formatting/mounting of a disk without a partition table
Several use-cases involve formatting and entire disk with a filesystem.
Exercise this code by adding additional disks and tests to the test_basic
test. Utilize the btrfs filesystem type. Adding this test exposed several
issues with both fstab writing (it didn't know what to do with volumes of
type 'disk') and typo's in postinstall code which installed filesystem
utilities into the target (brtfs vs. btrfs). A couple other minor fixes
were included to ensure the testsuite - 317. By Scott Moser
-
vmtest: do not expect sda-part2 to exist in /dev/disk/by-dname on trusty
This never worked, but we did not see failure before because of a test
case never properly executing. - 316. By Scott Moser
-
dowait cleanups
make vmtest specify --dowait or --no-wait when running 'launch' and
'xkvm'. Additionally, have these programs be a bit smarter and default
to dowait=true unless both stdin and stdout are a terminal.
Previously, the default only considered stdin.The issue that is fixed here is that if a developer ran:
nosetests3 -vv tests/vmtests/
then xkvm would run qemu-system-x86_64 in the foreground.
by doing that, it would then not be able to handle the TERM signal
that it got from the timeout. - 315. By Scott Moser
-
vmtests: improve output of vmtests
This changes vmtest to put its output in a single top level directory.
By default:
/tmp/vmtest- 2015-11- 16T204216. 241018. log
/tmp/vmtest- 2015-11- 16T204216. 241018/ Inside that dir are files named per each test, like:
WilyTestBasicAdd tools/jenkins-
runner that simplifies jenkins running so that
artifacts can easily be collected. If you run tools/jenkins-runner
it will create output/ and put all files in there.Also now allow configuration of what things to keep from the vmtest run
and when to keep them. Default value is to keep all files from failed
tests. This is configurable via CURTIN_VMTEST_ KEEP_DATA_ PASS and
CURTIN_VMTEST_ DATA_FAIL. Add test_vmtest.py that contains Psuedo tests that act like the vmtests,
but run quickly. They are useful for testing the setUpClass and the test
harness itself. They will pass and not do really anything. To enable them
to fail and exercise that portion of the test harness, set the environment
variable CURTIN_VMTEST_ DEBUG_ALLOW_ FAIL=1. Finally add documentation for all environment variables used by vmtest
to doc/devel/README- vmtest. txt. - 314. By Scott Moser
-
debian/control: do not list e2fsprogs
e2fsprogs is essential and thus we do not need an explicit
depends per lintian-info depends-on-essential- package- without- using-version.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)