HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/propbase/propbase_website/node_modules/busboy/test/test.js
'use strict';

const { spawnSync } = require('child_process');
const { readdirSync } = require('fs');
const { join } = require('path');

const files = readdirSync(__dirname).sort();
for (const filename of files) {
  if (filename.startsWith('test-')) {
    const path = join(__dirname, filename);
    console.log(`> Running ${filename} ...`);
    const result = spawnSync(`${process.argv0} ${path}`, {
      shell: true,
      stdio: 'inherit',
      windowsHide: true
    });
    if (result.status !== 0)
      process.exitCode = 1;
  }
}