mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-25 21:44:49 +00:00
azure-cli: add self-test to ensure everything in the CLI works
This commit is contained in:
parent
b4c5c6db4d
commit
904bfb1759
@ -185,10 +185,12 @@ py.pkgs.toPythonApplication (py.pkgs.buildAzureCliPackage {
|
||||
--set PYTHONPATH $PYTHONPATH
|
||||
'';
|
||||
|
||||
# almost the entire test suite requires an azure account setup and networking
|
||||
# ensure that the azure namespaces are setup correctly and that azure.cli can be accessed
|
||||
checkPhase = ''
|
||||
HOME=$TMPDIR $out/bin/az --help > /dev/null
|
||||
doInstallCheck = true;
|
||||
installCheckPhase = ''
|
||||
export HOME=$TMPDIR
|
||||
|
||||
$out/bin/az --version
|
||||
$out/bin/az self-test
|
||||
'';
|
||||
|
||||
# ensure these namespaces are able to be accessed
|
||||
|
Loading…
Reference in New Issue
Block a user