// Use of this source code is governed by an apache-2.0 license that can be
// found in the LICENSE file.
-#include <common/pkgmgr_query.h>
#include <common/utils/subprocess.h>
#include <unit_tests/common/smoke_utils.h>
}
TEST_F(SmokeTest, RecoveryMode_Tpk_Update) {
- std::string pkgid = "recoverypkg";
-
RemoveAllRecoveryFiles("/tpk-recovery", params.test_user.uid);
- ci::PkgQuery::Instance().GetResult(pkgid, params.test_user.uid, true);
bf::path path_old = kSmokePackagesDirectory / "RecoveryPkg.tpk";
bf::path path_new = kSmokePackagesDirectory / "RecoveryPkg2.tpk";
tpk_backend.Kill();
if (tpk_backend.Wait() == 9) {
+ std::string pkgid = "recoverypkg";
std::string appid = "recoverypkg";
std::string exec = "recoverypkg";
bf::path recovery_file = FindRecoveryFile("/tpk-recovery",
}
TEST_F(SmokeTest, RecoveryMode_ForDelta) {
- std::string pkgid = "recoverypkg";
-
RemoveAllRecoveryFiles("/tpk-recovery", params.test_user.uid);
- ci::PkgQuery::Instance().GetResult(pkgid, params.test_user.uid, true);
bf::path path_old = kSmokePackagesDirectory / "RecoveryPkg.tpk";
bf::path path_new = kSmokePackagesDirectory / "RecoveryPkg.delta";
tpk_backend.Kill();
if (tpk_backend.Wait() == 9) {
+ std::string pkgid = "recoverypkg";
std::string appid = "recoverypkg";
std::string exec = "recoverypkg";
bf::path recovery_file = FindRecoveryFile("/tpk-recovery",
}
TEST_F(SmokeTest, RecoveryMode_ForMountUpdate) {
- std::string pkgid = "recoverypkg";
RemoveAllRecoveryFiles("/tpk-recovery", params.test_user.uid);
- ci::PkgQuery::Instance().GetResult(pkgid, params.test_user.uid, true);
bf::path path_old =
kSmokePackagesDirectory / "RecoveryPkg.tpk";
tpk_backend.Kill();
if (tpk_backend.Wait() == 9) {
+ std::string pkgid = "recoverypkg";
std::string appid = "recoverypkg";
std::string exec = "recoverypkg";
bf::path recovery_file = FindRecoveryFile("/tpk-recovery",