Eric Blake
b188660865
tests: Avoid writing into $HOME during virsh-snapshot
...
In a constrained CI environment, where it is intentional that attempts
to write outside the current directory will fail, virsh-snapshot was
failing:
@@ -1,2 +1,3 @@
error: invalid argument: parent s3 for snapshot s2 not found
error: marker
+error: Failed to create '/home/travis/.cache/libvirt/virsh': Permission denied
FAIL virsh-snapshot (exit status: 1)
But we've already solved the problem in virsh-uriprecedence: tell
virsh to use XDG locations pointing to somewhere we can write rather
than its default of falling back to $HOME with the test being at risk
of breaking due to the user's environment and/or unacceptably altering
the user's normal cache. Hoist that solution into test-lib.sh, so
that all scripts can use it as needed. While at it, fix a latent typo
where XDG_RUNTIME_HOME was set to a literal relative directory name
"XDG_CACHE_HOME" (the typo did not affect virsh-uriprecedence, but
could matter to other clients).
Fixes: 280a2b41
Fixes: 398de147
Reported-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
2019-04-04 09:35:40 -05:00
..
2018-05-13 13:38:31 +04:00
2019-02-24 13:20:51 +04:00
2019-02-24 13:20:51 +04:00
2018-12-03 14:31:41 +01:00
2018-12-17 15:02:11 +00:00
2019-03-05 14:47:49 +01:00
2019-03-18 10:51:02 -04:00
2017-11-07 14:58:04 +01:00
2018-03-13 13:54:06 +01:00
2018-11-14 12:18:46 -05:00
2018-02-02 14:51:32 +01:00
2019-03-13 12:06:52 -06:00
2019-03-06 15:53:53 +01:00
2019-02-21 13:06:16 -05:00
2019-01-29 13:37:11 +00:00
2019-02-01 12:57:13 -05:00
2019-02-01 12:57:13 -05:00
2019-03-22 12:59:56 +03:00
2017-12-07 09:21:04 +00:00
2017-12-07 09:21:04 +00:00
2017-12-05 14:52:49 +01:00
2018-08-28 11:49:01 +01:00
2018-07-10 13:37:51 +02:00
2019-04-04 09:52:23 +02:00
2019-02-05 17:15:05 +01:00
2019-03-12 15:29:44 +01:00
2017-11-30 16:49:05 +01:00
2019-02-14 09:22:17 +01:00
2019-02-14 09:22:17 +01:00
2018-08-13 15:50:01 +02:00
2018-04-17 12:45:26 -04:00
2019-04-03 11:58:09 +02:00
2019-04-04 09:52:23 +02:00
2019-04-03 16:37:19 +02:00
2019-03-13 12:06:52 -06:00
2019-03-07 12:01:09 +01:00
2019-01-29 19:16:19 -05:00
2019-03-19 16:46:21 +01:00
2019-03-19 16:46:21 +01:00
2018-05-25 09:32:37 -04:00
2018-12-17 14:43:33 +00:00
2018-12-17 14:43:33 +00:00
2019-03-06 11:12:48 -05:00
2018-03-14 17:43:40 +01:00
2018-09-20 13:06:02 -04:00
2018-10-05 15:53:29 +02:00
2019-02-26 11:41:18 +01:00
2018-08-14 15:52:35 +02:00
2019-04-03 14:44:32 +02:00
2018-08-13 15:50:01 +02:00
2018-02-02 13:00:48 +00:00
2018-06-26 11:22:07 +01:00
2018-08-13 14:19:41 -04:00
2018-04-20 09:09:29 +02:00
2019-03-13 12:06:52 -06:00
2019-03-13 12:06:52 -06:00
2018-04-09 11:33:30 -06:00
2018-04-20 09:11:01 +02:00
2018-02-19 13:15:00 -05:00
2018-05-13 13:38:31 +04:00
2018-02-22 13:52:45 +01:00
2019-02-24 13:20:51 +04:00
2019-02-24 13:20:51 +04:00
2018-08-15 10:15:29 +02:00
2018-09-20 10:16:39 +02:00
2018-12-17 15:02:11 +00:00
2019-03-05 14:47:49 +01:00
2019-02-11 17:40:44 -05:00
2019-03-18 12:40:03 -04:00
2018-12-13 16:08:38 +00:00
2019-03-22 01:15:20 -05:00
2018-09-20 10:16:39 +02:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-08-15 10:15:29 +02:00
2018-11-14 12:18:46 -05:00
2018-04-26 13:39:10 +02:00
2018-09-20 10:16:39 +02:00
2018-07-27 15:44:38 +02:00
2019-02-11 17:40:44 -05:00
2019-03-14 10:05:25 +01:00
2018-12-11 15:03:08 -05:00
2018-09-20 10:16:39 +02:00
2019-04-03 12:01:56 +01:00
2019-03-08 14:59:20 +01:00
2019-01-31 17:45:41 +01:00
2019-03-14 10:05:25 +01:00
2019-01-31 17:45:41 +01:00
2018-09-20 10:16:39 +02:00
2018-09-20 10:16:39 +02:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-14 10:47:13 +00:00
2019-03-14 10:05:25 +01:00
2018-09-20 10:16:39 +02:00
2018-12-13 16:08:38 +00:00
2018-12-17 17:52:46 +01:00
2018-09-20 10:16:39 +02:00
2018-08-13 15:50:01 +02:00
2018-09-20 10:16:39 +02:00
2019-04-03 11:58:09 +02:00
2019-03-18 15:49:47 +01:00
2018-12-13 16:08:38 +00:00
2019-03-13 11:07:12 +01:00
2018-06-19 14:01:14 +02:00
2018-12-14 10:47:13 +00:00
2018-12-13 16:08:38 +00:00
2018-08-13 15:50:01 +02:00
2018-12-14 10:47:13 +00:00
2019-03-26 16:43:48 +01:00
2019-03-26 11:05:03 -04:00
2019-03-14 10:05:25 +01:00
2018-12-14 10:47:13 +00:00
2019-03-26 14:12:05 +01:00
2018-12-14 10:47:13 +00:00
2018-12-14 10:47:13 +00:00
2019-04-03 11:31:38 +01:00
2018-12-19 15:32:43 +01:00
2018-12-19 15:32:43 +01:00
2019-01-24 18:59:38 -05:00
2019-04-03 16:37:19 +02:00
2019-04-03 16:37:19 +02:00
2018-11-16 13:42:39 +01:00
2018-09-20 10:16:39 +02:00
2018-09-20 10:16:39 +02:00
2018-12-05 10:39:54 +01:00
2018-11-16 13:42:39 +01:00
2018-09-20 10:16:39 +02:00
2018-09-20 10:16:39 +02:00
2018-09-20 10:16:39 +02:00
2018-09-20 10:16:39 +02:00
2018-12-13 16:08:38 +00:00
2019-02-12 08:51:23 -05:00
2019-03-07 12:12:11 +01:00
2019-02-12 13:11:36 -05:00
2019-03-19 16:46:21 +01:00
2019-02-12 08:51:23 -05:00
2019-02-12 08:51:23 -05:00
2018-12-14 10:47:13 +00:00
2019-04-04 09:35:40 -05:00
2019-03-14 10:05:21 +01:00
2019-02-20 15:54:41 +01:00
2018-12-14 10:47:13 +00:00
2018-09-20 10:16:39 +02:00
2018-12-14 10:47:13 +00:00
2019-03-13 11:07:10 +01:00
2019-03-13 11:07:10 +01:00
2018-07-13 14:15:59 +02:00
2018-12-14 10:47:13 +00:00
2018-11-26 16:38:26 -07:00
2018-12-14 10:47:13 +00:00
2018-09-20 10:16:39 +02:00
2018-09-20 10:16:39 +02:00
2018-12-13 16:08:38 +00:00
2018-02-05 16:08:57 +01:00
2019-04-03 11:58:10 +02:00
2018-12-13 16:08:38 +00:00
2018-09-20 10:16:39 +02:00
2019-04-03 11:31:38 +01:00
2018-12-14 10:47:13 +00:00
2018-09-20 10:16:39 +02:00
2018-06-05 14:32:36 +02:00
2018-12-13 16:08:38 +00:00
2018-12-14 10:47:13 +00:00
2018-12-13 16:08:38 +00:00
2018-12-17 17:52:46 +01:00
2018-12-18 10:12:09 -05:00
2019-02-03 17:46:29 -05:00
2019-02-26 11:41:18 +01:00
2019-02-26 11:41:18 +01:00
2019-04-03 11:31:38 +01:00
2019-03-13 14:15:35 +01:00
2019-02-01 12:08:37 -05:00
2018-12-14 10:47:13 +00:00
2018-12-05 10:39:54 +01:00
2018-12-14 10:47:13 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-14 10:47:13 +00:00
2019-04-03 14:44:32 +02:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2019-02-14 18:03:10 +01:00
2018-12-13 16:08:38 +00:00
2017-11-03 13:24:12 +01:00
2018-12-13 16:08:38 +00:00
2019-04-03 11:31:38 +01:00
2019-04-03 11:31:38 +01:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-14 10:47:13 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-14 10:47:13 +00:00
2018-12-13 16:08:38 +00:00
2018-04-24 11:02:28 +02:00
2018-09-20 10:16:39 +02:00
2019-04-03 11:31:38 +01:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-14 10:47:13 +00:00
2018-12-13 16:08:38 +00:00
2019-03-14 10:05:28 +01:00
2019-03-14 10:05:25 +01:00
2019-04-04 09:35:40 -05:00
2018-10-12 09:30:56 -05:00
2019-04-04 09:35:40 -05:00
2019-03-25 09:01:53 -05:00
2019-04-03 11:58:09 +02:00
2019-02-12 08:51:23 -05:00
2018-12-13 16:08:38 +00:00
2018-12-14 10:47:13 +00:00
2019-01-23 07:54:58 +01:00
2019-04-03 11:31:38 +01:00
2018-12-13 16:08:38 +00:00
2018-09-20 10:16:38 +02:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-09-20 10:16:39 +02:00
2018-09-20 10:16:39 +02:00
2019-02-12 10:14:53 +01:00
2019-03-13 12:06:52 -06:00
2018-12-13 16:08:38 +00:00
2018-09-20 10:16:39 +02:00
2018-09-20 10:16:39 +02:00