Skip to content

Commit

Permalink
tests/vm: Use make's --output-sync option
Browse files Browse the repository at this point in the history
Use make's --output-sync option when running tests inside VMs,
so that if we're building with parallelization the output doesn't
get scrambled.

Signed-off-by: Peter Maydell <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Fam Zheng <[email protected]>
  • Loading branch information
pm215 authored and Fam Zheng committed Aug 15, 2018
1 parent eb2712f commit f2d4bec
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions tests/vm/freebsd
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ class FreeBSDVM(basevm.BaseVM):
cd $(mktemp -d /var/tmp/qemu-test.XXXXXX);
tar -xf /dev/vtbd1;
./configure {configure_opts};
gmake -j{jobs} {verbose};
gmake -j{jobs} check {verbose};
gmake --output-sync -j{jobs} {verbose};
gmake --output-sync -j{jobs} check {verbose};
"""

def build_image(self, img):
Expand Down
4 changes: 2 additions & 2 deletions tests/vm/netbsd
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ class NetBSDVM(basevm.BaseVM):
cd $(mktemp -d /var/tmp/qemu-test.XXXXXX);
tar -xf /dev/rld1a;
./configure --python=python2.7 {configure_opts};
gmake -j{jobs} {verbose};
gmake -j{jobs} check {verbose};
gmake --output-sync -j{jobs} {verbose};
gmake --output-sync -j{jobs} check {verbose};
"""

def build_image(self, img):
Expand Down
4 changes: 2 additions & 2 deletions tests/vm/openbsd
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ class OpenBSDVM(basevm.BaseVM):
cd $(mktemp -d /var/tmp/qemu-test.XXXXXX);
tar -xf /dev/rsd1c;
./configure --cc=x86_64-unknown-openbsd6.1-gcc-4.9.4 --python=python2.7 {configure_opts};
gmake -j{jobs} {verbose};
gmake --output-sync -j{jobs} {verbose};
# XXX: "gmake check" seems to always hang or fail
#gmake -j{jobs} check {verbose};
#gmake --output-sync -j{jobs} check {verbose};
"""

def build_image(self, img):
Expand Down
4 changes: 2 additions & 2 deletions tests/vm/ubuntu.i386
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ class UbuntuX86VM(basevm.BaseVM):
sudo chmod a+r /dev/vdb;
tar -xf /dev/vdb;
./configure {configure_opts};
make -j{jobs};
make check -j{jobs} {verbose};
make --output-sync -j{jobs};
make --output-sync check -j{jobs} {verbose};
"""

def _gen_cloud_init_iso(self):
Expand Down

0 comments on commit f2d4bec

Please sign in to comment.