[partition] Improve logging in automount test

- switch logging in job to VERBOSE because we don't want to be printing
  pointers to the regular session log
- switch logging in test to VERBOSE to actually see the messages from the Job
- hook the test into the build
main
Adriaan de Groot 4 years ago
parent c98a330bf9
commit c43a6ab866

@ -25,7 +25,7 @@ AutoMountManagementJob::prettyName() const
Calamares::JobResult
AutoMountManagementJob::exec()
{
cDebug() << "this" << Logger::Pointer( this ) << "value" << Logger::Pointer( m_stored.get() );
Logger::CDebug(Logger::LOGVERBOSE) << "this" << Logger::Pointer( this ) << "value" << Logger::Pointer( m_stored.get() );
if ( m_stored )
{
CalamaresUtils::Partition::automountRestore( m_stored );

@ -37,7 +37,7 @@ AutoMountJobTests::AutoMountJobTests() {}
void
AutoMountJobTests::testRunThrice()
{
Logger::setupLogLevel( Logger::LOGDEBUG );
Logger::setupLogLevel( Logger::LOGVERBOSE );
auto original = CalamaresUtils::Partition::automountDisable( true );
cDebug() << "Got automount info" << Logger::Pointer( original.get() );

@ -58,3 +58,11 @@ calamares_add_test(
DEFINITIONS ${_partition_defs}
)
calamares_add_test(
automounttests
SOURCES
${PartitionModule_SOURCE_DIR}/jobs/AutoMountManagementJob.cpp
AutoMountTests.cpp
LIBRARIES
calamares
)

Loading…
Cancel
Save