aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2012-09-14 19:23:42 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2012-09-14 19:23:42 +0100
commitc824c864c34b7a8cfdb29d4c5a8033fc4202c1e1 (patch)
tree3d59eb6d2fa6c395b4e1f831185ce04ea84425a7
parent7ce0a00a008983de8a8e61d33d41a4f41147db9b (diff)
downloadpaludis-c824c864c34b7a8cfdb29d4c5a8033fc4202c1e1.tar.gz
paludis-c824c864c34b7a8cfdb29d4c5a8033fc4202c1e1.tar.xz
Allow changing system_root for tests
-rw-r--r--paludis/environments/test/test_environment.cc6
-rw-r--r--paludis/environments/test/test_environment.hh2
2 files changed, 8 insertions, 0 deletions
diff --git a/paludis/environments/test/test_environment.cc b/paludis/environments/test/test_environment.cc
index 74ddf01..06578bf 100644
--- a/paludis/environments/test/test_environment.cc
+++ b/paludis/environments/test/test_environment.cc
@@ -312,3 +312,9 @@ TestEnvironment::update_config_files_for_package_move(const PackageDepSpec &, co
{
}
+void
+TestEnvironment::set_system_root(const FSPath & p)
+{
+ _imp->system_root_key->change_value(p);
+}
+
diff --git a/paludis/environments/test/test_environment.hh b/paludis/environments/test/test_environment.hh
index 6e6d765..e202d8f 100644
--- a/paludis/environments/test/test_environment.hh
+++ b/paludis/environments/test/test_environment.hh
@@ -139,6 +139,8 @@ namespace paludis
virtual void update_config_files_for_package_move(
const PackageDepSpec &, const QualifiedPackageName &) const;
+
+ void set_system_root(const FSPath &);
};
}