Changeset b6c43e5


Ignore:
Timestamp:
01/21/2024 07:32:56 AM (5 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.1, ken/TL2024, lazarus, plabs/newcss, rahul/power-profiles-daemon, trunk, xry111/llvm18
Children:
77fb07ae
Parents:
798131e
git-author:
Xi Ruoyao <xry111@…> (01/21/2024 06:32:55 AM)
git-committer:
Xi Ruoyao <xry111@…> (01/21/2024 07:32:56 AM)
Message:

accountsservice: Fix the test suite for Python 3.12, and remove "systemctl enable"

The assertEquals function has been removed.

There is no point to always start it on boot, just let D-Bus start it on
demand.

Link: https://docs.python.org/3.12/whatsnew/3.12.html#id3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/sysutils/accountsservice.xml

    r798131e rb6c43e5  
    114114
    115115    <para>
    116       Then fix the tests so that the new directory is found:
     116      Then fix a test script so that the new directory is found, and adapt
     117      it for Python 3.12.0 or later:
    117118    </para>
    118119
    119120<screen><userinput>sed -e '/accounts_service\.py/s/dbusmock/dbusmock-tests/' \
     121    -e 's/assertEquals/assertEqual/'                      \
    120122    -i tests/test-libaccountsservice.py</userinput></screen>
    121123
     
    208210   });</literal>
    209211EOF</userinput></screen>
    210 
    211     <sect3 id="accountsservice-init" revision="systemd">
    212 <!--      <title><phrase revision="sysv">Boot Script</phrase>
    213              <phrase revision="systemd">Systemd Units</phrase></title> -->
    214       <title>Systemd Unit</title>
    215 <!-- Automatically started by D-Bus when needed
    216       <para revision="sysv">
    217         To start the <command>accounts-daemon</command> daemon at boot,
    218         install the
    219         <filename>/etc/rc.d/init.d/accounts-daemon</filename> init script from
    220         the <xref linkend="bootscripts"/> package
    221         by running the following command as the
    222         <systemitem class="username">root</systemitem> user:
    223       </para>
    224 
    225 <screen role="root" revision="sysv"><userinput>make install-accounts-daemon</userinput></screen>
    226 -->
    227       <para>
    228         To start the <command>accounts-daemon</command> daemon at boot,
    229         enable the previously installed systemd unit
    230         by running the following command as the
    231         <systemitem class="username">root</systemitem> user:
    232       </para>
    233 
    234       <indexterm zone="accountsservice accountsservice-init">
    235         <primary sortas="f-accounts-daemon">accounts-daemon</primary>
    236       </indexterm>
    237 
    238 <screen role="root"><userinput>systemctl enable accounts-daemon</userinput></screen>
    239 
    240     </sect3>
    241212
    242213  </sect2>
Note: See TracChangeset for help on using the changeset viewer.