[gnome-continuous] libqa: explicitely cache user for smoketest so gdm will always have it when ListCachedUsers is calle
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous] libqa: explicitely cache user for smoketest so gdm will always have it when ListCachedUsers is calle
- Date: Wed, 21 May 2014 12:50:05 +0000 (UTC)
commit b4872501a8b29a116503c1c3e4f2a6cc6d7a8573
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date: Wed May 21 14:00:49 2014 +0200
libqa: explicitely cache user for smoketest so gdm will always have it when ListCachedUsers is called
src/js/libqa.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/js/libqa.js b/src/js/libqa.js
index 63d1c92..bc7eb59 100644
--- a/src/js/libqa.js
+++ b/src/js/libqa.js
@@ -230,7 +230,8 @@ function injectTestUserCreation(currentDir, currentEtcDir, username, params, can
// AccountService requires passing a crypt, so using passwd would be easier
passwordCommand = Format.vprintf("echo %s | passwd --stdin %s", [params.password, username]);
}
- execLine = Format.vprintf('/bin/sh -c "%s"; /bin/sh -c "%s"', [addUserCommand, passwordCommand])
+ let cacheUserCommand = Format.vprintf(commandTemplate, ['', 'CacheUser', 'string:' + username])
+ execLine = Format.vprintf('/bin/sh -c "%s"; /bin/sh -c "%s"; /bin/sh -c "%s"', [addUserCommand,
passwordCommand, cacheUserCommand])
if (params.session) {
setSessionCommand = Format.vprintf(commandTemplate, ['/User1000', 'User.SetXSession', 'string:' +
params.session])
execLine += Format.vprintf('; /bin/sh -c "%s"', [setSessionCommand])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]