Add QA tests and expand serialization for API

This commit is contained in:
Jon Evans
2024-04-02 19:51:18 -04:00
parent 6bd02cae6d
commit 1dbe78c68b
106 changed files with 9643 additions and 736 deletions
+8 -2
View File
@@ -46,7 +46,7 @@ public:
{
char buffer[4096];
buffer[ processOut->Read( buffer, sizeof( buffer ) - 1 ).LastRead() ] = '\0';
output.append( buffer, sizeof( buffer ) );
output.append( buffer, processOut->LastRead() );
bytesRead += processOut->LastRead();
}
@@ -57,7 +57,7 @@ public:
{
char buffer[4096];
buffer[ processOut->Read( buffer, sizeof( buffer ) - 1 ).LastRead() ] = '\0';
error.append( buffer, sizeof( buffer ) );
error.append( buffer, processOut->LastRead() );
bytesRead += processOut->LastRead();
}
@@ -95,6 +95,12 @@ wxString PYTHON_MANAGER::FindPythonInterpreter()
#else
wxArrayString output;
if( 0 == wxExecute( wxS( "which -a python3" ), output, wxEXEC_SYNC ) )
{
if( !output.IsEmpty() )
return output[0];
}
if( 0 == wxExecute( wxS( "which -a python" ), output, wxEXEC_SYNC ) )
{
if( !output.IsEmpty() )