I'm adding a new mozmill test.
I'd like to reuse test code that already exists, and is used by
xpcshell-test: mailnews/test/resources/smimeUtils.jsm
In the new mozmill test, I tried to include it:
var { SmimeUtils } = ChromeUtils.import(
"resource://testing-common/mailnews/smimeUtils.jsm"
);
That works with a local build!
However, if running in taskcluster, I get a "file not found" error.
Do you have any suggest how I could share the code in smimeUtils between
xpcshell and mozmill?
(I don't want to make it a regular jsm outside of tests.)
Thanks
Kai
On 20.09.19 23:56, Kai Engert wrote:
Do you have any suggestion how I could share the code in smimeUtils
between xpcshell and mozmill?
After having posted my question, I discovered that mozmill already uses
some other files from mailnews/test/resources, adds them to a definition
in mozmill/moz.build, and calls a function "load_via_src_path" with the
desired filenames.
I'll check if I can duplicate that for the file I need.
Kai
This is bug 1582055
https://bugzilla.mozilla.org/show_bug.cgi?id=1582055. I discovered the
same thing this week.
GL
On 21/09/2019 09:56, Kai Engert wrote:
I'm adding a new mozmill test.
I'd like to reuse test code that already exists, and is used by
xpcshell-test: mailnews/test/resources/smimeUtils.jsm
In the new mozmill test, I tried to include it:
var { SmimeUtils } = ChromeUtils.import(
"resource://testing-common/mailnews/smimeUtils.jsm"
);
That works with a local build!
However, if running in taskcluster, I get a "file not found" error.
Do you have any suggest how I could share the code in smimeUtils between
xpcshell and mozmill?
(I don't want to make it a regular jsm outside of tests.)
Thanks
Kai
Maildev mailing list
Maildev@lists.thunderbird.net
http://lists.thunderbird.net/mailman/listinfo/maildev_lists.thunderbird.net
On 21.09.19 02:38, Geoff Lankow wrote:
This is bug 1582055
https://bugzilla.mozilla.org/show_bug.cgi?id=1582055. I discovered the
same thing this week.
Thanks Geoff. The fix for bug 1582055 helps me (but I also need to use
load_via_src_path like in
mozilla/shared-modules/test-folder-display-helpers.sh).
Kai