Skip to content

Disable xsystem for WASM #288

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tharun571
Copy link
Contributor

Description

Shell commands do not work in WASM environment. This PR disables it.

Type of change

Please tick all options which are relevant.

  • Bug fix
  • New feature
  • Added/removed dependencies
  • Required documentation updates

@codecov-commenter
Copy link

codecov-commenter commented Apr 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.15%. Comparing base (160dce0) to head (0c1e9c4).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #288   +/-   ##
=======================================
  Coverage   82.15%   82.15%           
=======================================
  Files          20       20           
  Lines         958      958           
  Branches       88       88           
=======================================
  Hits          787      787           
  Misses        171      171           
Files with missing lines Coverage Δ
src/xsystem.hpp 76.00% <ø> (ø)
Files with missing lines Coverage Δ
src/xsystem.hpp 76.00% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

1 similar comment
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@tharun571 tharun571 force-pushed the wasm branch 3 times, most recently from 5416e4c to 9fd5a85 Compare April 17, 2025 13:04
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

kernel_res["evalue"] = "Shell commands are not supported in the WASM environment.";
kernel_res["traceback"] = nl::json::array();
#else
// Native environment: Execute shell commands
Copy link
Collaborator

@anutosh491 anutosh491 Apr 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes won't be needed anymore !

A simple skip for the test is what we need to do here :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants