#7956 Ipatests don't honor TMPDIR, TEMP or TMP environment variables
Closed: fixed 4 years ago by frenaud. Opened 4 years ago by slev.

I'm running ipatests via make fasttest in environment having pam_mktemp.
The result is:

=============== 29 failed, 608 passed, 232 skipped, 4 warnings in 14.62 seconds ===============

All the fails are concerned to:

========================================== FAILURES ===========================================
________________________________ test_Executioner.test_execute ________________________________

self = <ipatests.test_ipalib.test_backend.test_Executioner object at 0x7fd57b92b710>

    def test_execute(self):
        """
        Test the `ipalib.backend.Executioner.execute` method.
        """
>       api, _home = create_test_api(in_server=True)

ipatests/test_ipalib/test_backend.py:192: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
ipatests/util.py:579: in create_test_api
    home = TempHome()
ipatests/util.py:153: in __init__
    super(TempHome, self).__init__()
ipatests/util.py:101: in __init__
    assert self.path == self.__path
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <ipatests.util.TempHome object at 0x7fd57cf90128>

    def __get_path(self):
        assert path.abspath(self.__path) == self.__path
>       assert self.__path.startswith('/tmp/ipa.tests.')
E       AssertionError

ipatests/util.py:105: AssertionError
# echo "$TMPDIR"
/tmp/.private/root

master:

  • 5263c36 Respect TMPDIR, TEMP or TMP environment variables during testing

Metadata Update from @rcritten:
- Issue set to the milestone: FreeIPA 4.7.3

4 years ago

ipa-4-7:

  • 5700d49 Respect TMPDIR, TEMP or TMP environment variables during testing

Metadata Update from @frenaud:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

4 years ago

Login to comment on this ticket.

Metadata