Merge pull request #115311 from mweinelt/home-assistant

home-assistant: apply patch for stream component tests
This commit is contained in:
Martin Weinelt 2021-03-08 21:39:29 +01:00 committed by GitHub
commit 8d66669e80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,9 @@
{ stdenv, nixosTests, lib, fetchFromGitHub, python3
{ stdenv
, lib
, fetchFromGitHub
, fetchpatch
, python3
, nixosTests
# Look up dependencies of specified components in component-packages.nix
, extraComponents ? [ ]
@ -84,7 +89,14 @@ in with py.pkgs; buildPythonApplication rec {
};
# leave this in, so users don't have to constantly update their downstream patch handling
patches = [];
patches = [
(fetchpatch {
# Fix I-frame interval in stream test video
# https://github.com/home-assistant/core/pull/47638
url = "https://github.com/home-assistant/core/commit/d9bf63103fde44ddd38fb6b9a510d82609802b36.patch";
sha256 = "1y34cmw9zqb2lxyzm0q7vxlm05wwz76mhysgnh1jn39484fn9f9m";
})
];
postPatch = ''
substituteInPlace setup.py \
@ -331,12 +343,6 @@ in with py.pkgs; buildPythonApplication rec {
# generic/test_camera.py: AssertionError: 500 == 200
"test_fetching_without_verify_ssl"
"test_fetching_url_with_verify_ssl"
] ++ lib.optionals (stdenv.isAarch64) [
# tests getting stuck on aarch64
# components/stream/test_hls.py
"test_stream_ended"
# components/stream/test_recorder.py
"test_record_stream"
];
preCheck = ''