[gnome-ostree] smoketest: Fix for previous builtin refactoring
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-ostree] smoketest: Fix for previous builtin refactoring
- Date: Tue, 29 Jan 2013 20:10:59 +0000 (UTC)
commit 48a70ea61d6a338b1b6e25f7b2e96f8604853c84
Author: Colin Walters <walters verbum org>
Date: Mon Jan 28 17:15:01 2013 -0500
smoketest: Fix for previous builtin refactoring
src/ostbuild/js/builtins/qa_smoketest.js | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/src/ostbuild/js/builtins/qa_smoketest.js b/src/ostbuild/js/builtins/qa_smoketest.js
index 6a1eeef..1708e3c 100644
--- a/src/ostbuild/js/builtins/qa_smoketest.js
+++ b/src/ostbuild/js/builtins/qa_smoketest.js
@@ -47,7 +47,7 @@ const QaSmoketest = new Lang.Class({
_onQemuExited: function(proc, result) {
let [success, status] = ProcUtil.asyncWaitCheckFinish(proc, result);
this._qemu = null;
- loop.quit();
+ this._loop.quit();
if (!success) {
this._failed = true;
print("Qemu exited with status " + status);
@@ -60,7 +60,7 @@ const QaSmoketest = new Lang.Class({
print("Did not see MESSAGE_ID=" + msgid);
}
this._failed = true;
- loop.quit();
+ this._loop.quit();
},
_onJournalOpen: function(file, result) {
@@ -74,7 +74,7 @@ const QaSmoketest = new Lang.Class({
} catch (e) {
print("Open failed: " + e);
this._failed = true;
- loop.quit();
+ this._loop.quit();
}
},
@@ -85,7 +85,7 @@ const QaSmoketest = new Lang.Class({
[line, len] = stream.read_line_finish_utf8(result);
} catch (e) {
this._failed = true;
- loop.quit();
+ this._loop.quit();
throw e;
}
if (line) {
@@ -103,7 +103,7 @@ const QaSmoketest = new Lang.Class({
if (messageId == this.FailedMessageIDs[i]) {
print("Found failure message ID " + messageId);
this._failed = true;
- loop.quit();
+ this._loop.quit();
matched = true;
break;
}
@@ -116,7 +116,7 @@ const QaSmoketest = new Lang.Class({
Lang.bind(this, this._onJournalReadLine));
} else {
print("Found all required message IDs, exiting");
- loop.quit();
+ this._loop.quit();
}
}
},
@@ -141,6 +141,7 @@ const QaSmoketest = new Lang.Class({
},
execute: function(args, loop, cancellable) {
+ this._loop = loop;
this._failed = false;
this._journalStream = null;
this._journalDataStream = null;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]