Skip to content

Commit

Permalink
test: remove extra console output from test-os.js
Browse files Browse the repository at this point in the history
PR-URL: #12654
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
  • Loading branch information
jasnell committed May 1, 2017
1 parent 473572e commit 23fc082
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions test/parallel/test-os.js
Expand Up @@ -70,45 +70,37 @@ if (common.isWindows) {
} }


const endianness = os.endianness(); const endianness = os.endianness();
console.log('endianness = %s', endianness);
is.string(endianness); is.string(endianness);
assert.ok(/[BL]E/.test(endianness)); assert.ok(/[BL]E/.test(endianness));


const hostname = os.hostname(); const hostname = os.hostname();
console.log('hostname = %s', hostname);
is.string(hostname); is.string(hostname);
assert.ok(hostname.length > 0); assert.ok(hostname.length > 0);


const uptime = os.uptime(); const uptime = os.uptime();
console.log('uptime = %d', uptime);
is.number(uptime); is.number(uptime);
assert.ok(uptime > 0); assert.ok(uptime > 0);


const cpus = os.cpus(); const cpus = os.cpus();
console.log('cpus = ', cpus);
is.array(cpus); is.array(cpus);
assert.ok(cpus.length > 0); assert.ok(cpus.length > 0);


const type = os.type(); const type = os.type();
console.log('type = ', type);
is.string(type); is.string(type);
assert.ok(type.length > 0); assert.ok(type.length > 0);


const release = os.release(); const release = os.release();
console.log('release = ', release);
is.string(release); is.string(release);
assert.ok(release.length > 0); assert.ok(release.length > 0);
//TODO: Check format on more than just AIX //TODO: Check format on more than just AIX
if (common.isAix) if (common.isAix)
assert.ok(/^\d+\.\d+$/.test(release)); assert.ok(/^\d+\.\d+$/.test(release));


const platform = os.platform(); const platform = os.platform();
console.log('platform = ', platform);
is.string(platform); is.string(platform);
assert.ok(platform.length > 0); assert.ok(platform.length > 0);


const arch = os.arch(); const arch = os.arch();
console.log('arch = ', arch);
is.string(arch); is.string(arch);
assert.ok(arch.length > 0); assert.ok(arch.length > 0);


Expand All @@ -121,7 +113,6 @@ if (!common.isSunOS) {




const interfaces = os.networkInterfaces(); const interfaces = os.networkInterfaces();
console.error(interfaces);
switch (platform) { switch (platform) {
case 'linux': case 'linux':
{ {
Expand Down Expand Up @@ -151,7 +142,6 @@ assert.ok(EOL.length > 0);


const home = os.homedir(); const home = os.homedir();


console.log('homedir = ' + home);
is.string(home); is.string(home);
assert.ok(home.includes(path.sep)); assert.ok(home.includes(path.sep));


Expand Down

0 comments on commit 23fc082

Please sign in to comment.