HomeDevCentral

Allow to resolve __salt__ in rust module tests

Description

Allow to resolve salt in rust module tests

Summary:
Fixes the following issue:

======================================================================
ERROR: test_get_rustc_triplet (test_rust.Testinstance)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/salt/nasqueron-operations/_tests/modules/test_rust.py", line 11, in test_get_rustc_triplet
    triplet = rust.get_rustc_triplet()
  File "../_modules/rust.py", line 35, in get_rustc_triplet
    return __salt__["cmd.shell"]("rustc -vV | sed -ne 's/^host: //p'")
NameError: name '__salt__' is not defined

Test Plan: make test

Reviewers: dereckson

Reviewed By: dereckson

Differential Revision: https://devcentral.nasqueron.org/D2574

Details

Provenance
derecksonAuthored on Mar 5 2022, 10:09
derecksonPushed on Mar 7 2022, 22:17
Reviewer
dereckson
Differential Revision
D2574: Allow to resolve __salt__ in rust module tests
Parents
rOPSe89c73d4163b: Rename jails.list into jails.list_jails
Branches
Unknown
Tags
Unknown