File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33INCLUDEOS_SRC=${INCLUDEOS_SRC-$HOME / IncludeOS}
44pushd $INCLUDEOS_SRC /build/unittests
5- ./unittests
5+ ./unittests --pass
66popd
Original file line number Diff line number Diff line change 88import time
99import multiprocessing # To figure out number of cpus
1010import junit_xml as jx
11+ import codecs
1112
1213sys .stdout = os .fdopen (sys .stdout .fileno (), 'w' , 1 ) # line buffering
1314sys .path .insert (0 , "." )
@@ -162,10 +163,10 @@ def wait_status(self):
162163 # Start and wait for the process
163164 self .proc_ .communicate ()
164165
165- with open ('{}/log_stdout.log' .format (self .path_ ), 'r ' ) as log_stdout :
166+ with codecs . open ('{}/log_stdout.log' .format (self .path_ ), encoding = 'utf-8' , errors = 'replace ' ) as log_stdout :
166167 self .output_ .append (log_stdout .read ())
167168
168- with open ('{}/log_stderr.log' .format (self .path_ ), 'r ' ) as log_stderr :
169+ with codecs . open ('{}/log_stderr.log' .format (self .path_ ), encoding = 'utf-8' , errors = 'replace ' ) as log_stderr :
169170 self .output_ .append (log_stderr .read ())
170171
171172
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ CASE("Constructing a chunk with a shared buffer and size")
3737 Chunk c{buf, N};
3838
3939 EXPECT (c.size () == N);
40- EXPECT (c );
40+ EXPECT (static_cast < bool >(c) );
4141
4242 EXPECT (c.data () == buf.get ());
4343}
You can’t perform that action at this time.
0 commit comments